We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39bd537 commit 1873d39Copy full SHA for 1873d39
1 file changed
.github/workflows/deploy.yml
@@ -6,10 +6,12 @@ on:
6
workflow_dispatch:
7
8
permissions:
9
- contents: write
+ contents: read
10
+ pages: write
11
+ id-token: write
12
13
jobs:
- build-and-deploy:
14
+ build:
15
runs-on: ubuntu-latest
16
steps:
17
- name: Checkout 🛎️
@@ -20,8 +22,18 @@ jobs:
20
22
npm install
21
23
npm run build
24
- - name: Deploy 🚀
- uses: JamesIves/github-pages-deploy-action@v4
25
+ - name: Upload artifact 📤
26
+ uses: actions/upload-pages-artifact@v3
27
with:
- folder: dist
- 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