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
|
||||
name: CI
|
||||
jobs:
|
||||
build:
|
||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
|
||||
document:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out source code
|
||||
|
@ -20,6 +19,7 @@ jobs:
|
|||
run: |
|
||||
sphinx-build docs docs/_build
|
||||
- name: Publish documentation
|
||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue