File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- # Simple workflow for deploying static content to GitHub Pages
2
1
name : Deploy static content to Pages
3
2
4
3
on :
5
- # Runs on pushes targeting the default branch
6
4
push :
7
5
branches : ['main']
8
-
6
+ workflow_run :
7
+ workflows : ['Execute Tests']
8
+ types :
9
+ - completed
9
10
# Allows you to run this workflow manually from the Actions tab
10
11
workflow_dispatch :
11
12
@@ -21,8 +22,8 @@ concurrency:
21
22
cancel-in-progress : true
22
23
23
24
jobs :
24
- # Single deploy job since we're just deploying
25
25
deploy :
26
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
26
27
environment :
27
28
name : github-pages
28
29
url : ${{ steps.deployment.outputs.page_url }}
44
45
- name : Upload artifact
45
46
uses : actions/upload-pages-artifact@v3
46
47
with :
47
- # Upload dist repository
48
48
path : ' ./dist'
49
49
- name : Deploy to GitHub Pages
50
50
id : deployment
You can’t perform that action at this time.
0 commit comments