Skip to content

Commit 9f14fee

Browse files
Update deploy.yml
1 parent 7109161 commit 9f14fee

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ on:
77
- main
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
10+
contents: write
1311

1412
jobs:
15-
build:
13+
build-and-deploy:
1614
runs-on: ubuntu-latest
1715
steps:
1816
- name: Checkout Code
@@ -29,18 +27,10 @@ jobs:
2927
- name: Build Project
3028
run: npm run build
3129

32-
- name: Upload Artifact
33-
uses: actions/upload-pages-artifact@v3
34-
with:
35-
path: ./dist
36-
37-
deploy:
38-
environment:
39-
name: github-pages
40-
url: ${{ steps.deployment.outputs.page_url }}
41-
runs-on: ubuntu-latest
42-
needs: build
43-
steps:
30+
# This method is more robust for new repos as it doesn't require
31+
# manual configuration in the "Settings > Pages" tab.
4432
- name: Deploy to GitHub Pages
45-
id: deployment
46-
uses: actions/deploy-pages@v4
33+
uses: JamesIves/github-pages-deploy-action@v4
34+
with:
35+
folder: dist # The folder the build output is located in
36+
branch: gh-pages # The branch the action should deploy to

0 commit comments

Comments
 (0)