We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7718f56 commit d569921Copy full SHA for d569921
.github/workflows/docs.yml
@@ -2,6 +2,9 @@ name: Docs
2
3
on: [push, pull_request]
4
5
+env:
6
+ IS_RELEASE: |
7
+ ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
8
9
jobs:
10
build:
@@ -16,10 +19,14 @@ jobs:
16
19
run: pip install -r requirements-doc.txt
17
20
18
21
- name: Build
- run: make html
- - name: Publish
22
+ run: |
23
+ if [ "x$IS_RELEASE" == "xtrue" ]; then
24
+ O="-t release"
25
+ fi
26
+ make html O="$O"
27
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
28
+ - name: Publish
29
+ if: ${{ env.IS_RELEASE == 'true' }}
30
uses: peaceiris/actions-gh-pages@v3
31
with:
32
github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments