-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (39 loc) · 1.12 KB
/
deploy-documentation.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
35
36
37
38
39
---
name: Deploy Docs to Github Pages
on:
workflow_run:
branches: [main]
workflows: [Test docs]
types: [completed]
concurrency:
group: publish-docs
jobs:
publish-docs:
runs-on: ubuntu-latest
if: github.repository == 'tektronix/tm_devices' && github.event.workflow_run.conclusion
== 'success' && github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download Artifact
uses: dawidd6/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
run_id: ${{ github.event.workflow_run.id }}
workflow_conclusion: success
name: artifact_docs
- name: Unzip Documentation Results
run: |
unzip docs_results.zip
rm -r .results_docs/html/.doctrees
- name: Upload To Pages
uses: actions/upload-pages-artifact@v3
with:
path: .results_docs/html
- name: Deploy To Pages
uses: actions/deploy-pages@v4
id: deployment