CI: build docs on all pushes, update only on master.
This commit is contained in:
parent
c20266164d
commit
b0dbbb6b2a
4
.github/workflows/main.yaml
vendored
4
.github/workflows/main.yaml
vendored
|
@ -1,8 +1,7 @@
|
||||||
on: push
|
on: push
|
||||||
name: CI
|
name: CI
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
document:
|
||||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
|
@ -20,6 +19,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sphinx-build docs docs/_build
|
sphinx-build docs docs/_build
|
||||||
- name: Publish documentation
|
- name: Publish documentation
|
||||||
|
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue