mirror of
https://github.com/pi-hole/docs.git
synced 2026-04-17 15:43:16 +01:00
Remove deploy workflow since Netlify is used
This commit is contained in:
58
.github/workflows/ci.yml
vendored
58
.github/workflows/ci.yml
vendored
@@ -8,7 +8,7 @@ env:
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -21,8 +21,13 @@ jobs:
|
||||
python-version: '${{ env.PYTHON_VERSION }}'
|
||||
architecture: 'x64'
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "${{ env.NODE }}"
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/requirements.txt') }}
|
||||
@@ -33,56 +38,11 @@ jobs:
|
||||
- name: Install Python dependencies
|
||||
run: python3 -m pip install -r requirements.txt
|
||||
|
||||
- name: Build docs
|
||||
run: mkdocs build --clean
|
||||
|
||||
- name: Upload docs
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: docs
|
||||
path: ./site/
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "${{ env.NODE }}"
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Download docs
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: docs
|
||||
path: ./site/
|
||||
- name: Build docs
|
||||
run: mkdocs build
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, test]
|
||||
if: github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Download docs
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: docs
|
||||
path: ./site/
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
emptyCommits: false
|
||||
personal_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||
publish_branch: gh-pages
|
||||
publish_dir: ./site/
|
||||
|
||||
Reference in New Issue
Block a user