forked from 4C-multiphysics/4C
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.37 KB
/
deploy.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
41
42
43
44
45
46
47
name: deploy
on:
workflow_run:
workflows: [documentation, coverage]
types: [completed]
branches: [main]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == '4C-multiphysics/4C'
}}
steps:
- uses: dawidd6/action-download-artifact@v6
with:
workflow: documentation.yml
name: doxygen
path: ${{ github.workspace }}/doxygen
branch: ${{ github.event.repository.default_branch }}
- uses: dawidd6/action-download-artifact@v6
with:
workflow: documentation.yml
name: readthedocs
path: ${{ github.workspace }}/readthedocs
branch: ${{ github.event.repository.default_branch }}
- uses: dawidd6/action-download-artifact@v6
with:
workflow: coverage.yml
name: 4C_coverage_report
path: ${{ github.workspace }}/coverage_report
branch: ${{ github.event.repository.default_branch }}
- uses: actions/upload-pages-artifact@v3
id: deployment
with:
path: ${{ github.workspace }}
retention-days: 1
- uses: actions/deploy-pages@v4