-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 989 Bytes
/
release-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish documentation
on:
workflow_call:
workflow_dispatch:
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: "true"
- name: Install Python
uses: ./.github/actions/setup-py
- name: Build docs
id: doc_info
run: |
mkdir site
nox -s generate-docs -- -o ./site -j
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_STATE
- name: Push
uses: JamesIves/github-pages-deploy-action@15de0f09300eea763baee31dff6c6184995c5f6a
with:
branch: docs
commit-message: "${{ steps.doc_info.outputs.GIT_HASH }} docs (${{ github.event.release.tag_name || github.event.ref }})"
clean-exclude: pr-preview
folder: ./site
git-config-email: "120557446+always-on-duty[bot]@users.noreply.github.com"
git-config-name: "always-on-duty[bot]"