-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (31 loc) · 1.03 KB
/
docs-deploy.yml
File metadata and controls
36 lines (31 loc) · 1.03 KB
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
35
36
name: Docs Deploy
permissions:
contents: write # needed for the deploy step
on:
workflow_run:
workflows: ["Docs Build"]
types: [completed]
branches:
- "main"
jobs:
docs-deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'push' }}
environment:
name: docs-deploy
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download Artifact
uses: dawidd6/action-download-artifact@2536c51d3d126276eb39f74d6bc9c72ac6ef30d3 # v16
with:
workflow: docs-build.yml
name: docs-build
path: docs/build/
# Note, the gh-pages deployment requires setting up a SSH deploy key.
# See
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
- name: Deploy
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
with:
folder: docs/build/
ssh-key: ${{ secrets.DEPLOY_KEY }}