File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed
Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment
16+ concurrency :
17+ group : " pages"
18+ cancel-in-progress : true
19+
920jobs :
1021 cypress-run :
1122 runs-on : ubuntu-latest
4758 if : always()
4859 with :
4960 name : cypress-reports
50- path : cypress/reports
61+ path : cypress/reports
62+
63+ - name : Setup Pages
64+ if : success()
65+ uses : actions/configure-pages@v4
66+
67+ - name : Upload Pages artifact
68+ if : success()
69+ uses : actions/upload-pages-artifact@v3
70+ with :
71+ path : ' cypress/reports/html'
72+
73+ deploy :
74+ needs : cypress-run
75+ runs-on : ubuntu-latest
76+ if : github.ref == 'refs/heads/master'
77+
78+ environment :
79+ name : github-pages
80+ url : ${{ steps.deployment.outputs.page_url }}
81+
82+ steps :
83+ - name : Deploy to GitHub Pages
84+ id : deployment
85+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments