File tree Expand file tree Collapse file tree 1 file changed +18
-27
lines changed
Expand file tree Collapse file tree 1 file changed +18
-27
lines changed Original file line number Diff line number Diff line change @@ -2,38 +2,29 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches : ["main"]
6- workflow_dispatch :
7-
8- permissions :
9- contents : read
10- pages : write
11- id-token : write
5+ branches : [main]
126
137jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - run : pnpm install
13+ - run : pnpm run build
14+ - uses : actions/configure-pages@v5
15+ - uses : actions/upload-pages-artifact@v3
16+ with :
17+ path : " ./dist"
18+
1419 deploy :
20+ needs : build
21+ permissions :
22+ pages : write
23+ id-token : write
1524 environment :
1625 name : github-pages
1726 url : ${{ steps.deployment.outputs.page_url }}
1827 runs-on : ubuntu-latest
1928 steps :
20- - name : Checkout
21- uses : actions/checkout@v4
22- - name : Set up Node
23- uses : actions/setup-node@v4
24- with :
25- node-version : 20
26- cache : ' npm'
27- - name : Install dependencies
28- run : npm install -g pnpm && pnpm install
29- - name : Build
30- run : pnpm build
31- - name : Setup Pages
32- uses : actions/configure-pages@v4
33- - name : Upload artifact
34- uses : actions/upload-pages-artifact@v3
35- with :
36- path : ' ./dist'
37- - name : Deploy to GitHub Pages
38- id : deployment
39- uses : actions/deploy-pages@v4
29+ - uses : actions/deploy-pages@v4
30+ id : deployment
You can’t perform that action at this time.
0 commit comments