Skip to content

Commit ceba187

Browse files
committed
Added name to upload
1 parent 47b4ed0 commit ceba187

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/fns-api-workflow.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)