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.
2 parents 3c55cb3 + 32dd749 commit 6d6ee5eCopy full SHA for 6d6ee5e
.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:
@@ -14,9 +17,14 @@ jobs:
14
17
- name: Install mpl-gui
15
18
run: python -m pip install -v .
16
19
- name: Build
- run: make -Cdocs html
20
+ run: |
21
+ if [ "x${IS_RELEASE}" == "xtrue" ]; then
22
+ O="-t release"
23
+ fi
24
+ make -Cdocs html O="$O"
25
+
26
- name: Publish
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
27
+ if: ${{ env.IS_RELEASE == 'true' }}
28
uses: peaceiris/actions-gh-pages@v3
29
with:
30
github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments