Skip to content

Commit 1873d39

Browse files
committed
chore: use official GitHub Actions for deployment
1 parent 39bd537 commit 1873d39

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
1012

1113
jobs:
12-
build-and-deploy:
14+
build:
1315
runs-on: ubuntu-latest
1416
steps:
1517
- name: Checkout 🛎️
@@ -20,8 +22,18 @@ jobs:
2022
npm install
2123
npm run build
2224
23-
- name: Deploy 🚀
24-
uses: JamesIves/github-pages-deploy-action@v4
25+
- name: Upload artifact 📤
26+
uses: actions/upload-pages-artifact@v3
2527
with:
26-
folder: dist
27-
branch: gh-pages
28+
path: ./dist
29+
30+
deploy:
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
runs-on: ubuntu-latest
35+
needs: build
36+
steps:
37+
- name: Deploy to GitHub Pages 🚀
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)