forked from tektronix/tm_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.16 KB
/
upload_artifacts.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
40
---
name: Upload Artifact
on:
workflow_run:
branches: [main]
workflows: [Create Temp HTML]
types:
- completed
# Cancel running jobs for the same workflow and branch.
concurrency:
group: publish-docs
jobs:
publish-docs:
runs-on: ubuntu-latest
if: ${{ 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:
- run: echo 'The Test docs workflow passed'
- 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-artifact
run: |
unzip docs_result.zip
- name: upload-pages-artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs_results/.results_docs/html
- name: deploy-to-github-pages
uses: actions/deploy-pages@v2
id: deployment