File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change 1010 workflow_dispatch :
1111
1212# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13- permissions :
14- contents : read
15- pages : write
16- id-token : write
1713
1814# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1915# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -22,32 +18,40 @@ concurrency:
2218 cancel-in-progress : false
2319
2420jobs :
25- # Single deploy job since we're just deploying
26- deploy :
27- environment :
28- name : github-pages
29- url : ${{ steps.deployment.outputs.page_url }}
21+ build :
3022 runs-on : ubuntu-latest
3123 steps :
3224 - name : Checkout
3325 uses : actions/checkout@v6
3426 with :
3527 fetch-depth : 0
36- - uses : actions/setup-node@v6
28+ - name : Setup Node.js
29+ uses : actions/setup-node@v6
3730 with :
3831 cache : npm
3932 node-version-file : ' .nvmrc'
4033 - name : Setup Pages
4134 uses : actions/configure-pages@v5
42- - name : Install
43- run : npm install
44- - name : Build
45- run : npm run ci:build:lib && npm run ci:build:app
35+ - name : Install dependencies
36+ run : npm ci
37+ - name : Build angularx-qrcode demo app
38+ id : build
39+ run : npm run ci:build:app
4640 - name : Upload artifact
41+ id : deployment
4742 uses : actions/upload-pages-artifact@v4
4843 with :
49- # Upload entire repository
50- path : ' dist/demo-app'
44+ path : ' dist/demo-app/browser'
45+ deploy :
46+ needs : build
47+ permissions :
48+ pages : write
49+ id-token : write
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+ runs-on : ubuntu-latest
54+ steps :
5155 - name : Deploy to GitHub Pages
5256 id : deployment
5357 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments