File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,12 +55,14 @@ jobs:
5555 - name : Upload static files as artifact
5656 uses : actions/upload-pages-artifact@v3
5757 with :
58+ name : github-pages
5859 path : ' ./public'
60+
5961
6062 # Job 2: Deploy GitHub Pages
6163 deploy-pages :
6264 name : Deploy Coverage Report
63- if : github.ref == 'refs/heads/master'
65+ # if: github.ref == 'refs/heads/master'
6466 environment :
6567 name : github-pages
6668 url : ${{ steps.deployment.outputs.page_url }}
@@ -69,10 +71,15 @@ jobs:
6971 steps :
7072 - name : Setup Pages
7173 uses : actions/configure-pages@v3
74+
75+ - name : Download artifact
76+ uses : actions/download-artifact@v3
77+ with :
78+ name : github-pages
7279
7380 - name : Deploy to GitHub Pages
7481 id : deployment
75- uses : actions/deploy-pages@v2
82+ uses : actions/deploy-pages@v4
7683
7784 # Job 3: Build and push Docker image (master only)
7885 build-and-push-image :
You can’t perform that action at this time.
0 commit comments