File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ name: Build & Deploy
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [main ]
66 pull_request :
7- branches : [ master ]
8- schedule :
9- - cron : " 0 0 * * *"
7+ branches : [main ]
8+ schedule :
9+ - cron : ' 0 0 * * *'
1010 workflow_dispatch :
1111
12-
1312permissions :
1413 contents : read
1514 pages : write
@@ -20,22 +19,22 @@ jobs:
2019 runs-on : ubuntu-latest
2120 steps :
2221 - uses : actions/checkout@v4
23- - uses : actions/setup-node@v2-beta
22+ - uses : actions/setup-node@v4
2423 with :
25- node-version : ' 12'
26- - name : Hugo setup
27- 24+ node-version : ' 22'
25+ - uses : pnpm/action-setup@v4
2826 with :
29- hugo-version : 0.76.5
30- extended : true
31- - name : NPM install
32- run : npm install
33- - name : Build
34- run : npm run build
27+ version : latest
28+ - name : Install dependencies
29+ run : pnpm install
30+ - name : Lint code
31+ run : pnpm run lint
32+ - name : Build with Astro
33+ run : pnpm run build
3534 - name : Upload artifact
3635 uses : actions/upload-pages-artifact@v3
3736 with :
38- path : ./public
37+ path : ./dist
3938 deploy :
4039 environment :
4140 name : github-pages
You can’t perform that action at this time.
0 commit comments