File tree Expand file tree Collapse file tree 1 file changed +26
-21
lines changed
Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8- permissions :
9- contents : write
10-
118concurrency :
129 group : ${{ github.workflow }}
1310 cancel-in-progress : true
1411
1512jobs :
16- build-and-deploy :
13+ build :
1714 runs-on : ubuntu-latest
18-
1915 steps :
2016 - uses : actions/checkout@v4
21-
2217 - name : Set up Pandoc
2318 uses : r-lib/actions/setup-pandoc@v2
24-
2519 - name : Set up .NET
2620 uses : actions/setup-dotnet@v4
2721 with :
2822 dotnet-version : 8.0.x
29-
23+ - name : Set up PNPM
24+ uses : pnpm/action-setup@v4
25+ with :
26+ version : 8
3027 - name : Set up Node.js
3128 uses : actions/setup-node@v4
3229 with :
3330 node-version : 21
34-
35- - name : Install Packages via pnpm
36- uses : pnpm/action-setup@v3
37- with :
38- version : 8
39- run_install : true
40-
41- - name : Build App
31+ cache : pnpm
32+ cache-dependency-path : pnpm-lock.yaml
33+ - name : Install NPM packages
34+ run : pnpm i
35+ - name : Build app
4236 run : pnpm build
43-
44- - name : Deploy to Github Pages
45- uses : JamesIves/github-pages-deploy-action@v4
37+ - name : Upload artifact
38+ uses : actions/upload-pages-artifact@v3
4639 with :
47- branch : gh-pages
48- folder : dist
40+ path : dist/
41+ deploy :
42+ needs : build
43+ permissions :
44+ pages : write
45+ id-token : write
46+ environment :
47+ name : github-pages
48+ url : ${{ steps.deployment.outputs.page_url }}
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments