Skip to content

Commit 9a64688

Browse files
committed
chore: updated flow
1 parent 14d66f5 commit 9a64688

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14-
build-and-deploy:
14+
build:
1515
runs-on: ubuntu-latest
16-
1716
steps:
1817
- name: Checkout repository
1918
uses: actions/checkout@v4
@@ -29,10 +28,21 @@ jobs:
2928
- name: Build site
3029
run: npm run build
3130

32-
- name: Upload artifact for GitHub Pages
33-
uses: actions/upload-pages-artifact@v1
31+
- name: Upload static files as artifact
32+
id: deployment
33+
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
3434
with:
3535
path: './dist'
3636

3737
- name: Deploy to GitHub Pages
38-
uses: actions/deploy-pages@v1
38+
uses: actions/deploy-pages@v4
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)