File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,23 +3,30 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches : [ main ]
6- pull_request :
7- branches : [ main ]
6+
7+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
817
918jobs :
1019 deploy :
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
1123 runs-on : ubuntu-latest
1224
1325 steps :
1426 - name : Checkout
1527 uses : actions/checkout@v4
1628
1729 - name : Setup Node.js
18- uses : actions/setup-node@v4
19- with :
20- node-version : ' 18'
21-
22- - name : Setup Yarn
2330 uses : actions/setup-node@v4
2431 with :
2532 node-version : ' 18'
3643 cd applications/dknet/frontend
3744 yarn build
3845
39- - name : Deploy to GitHub Pages
40- if : github.ref == 'refs/heads/main'
41- uses : peaceiris/actions-gh-pages@v3
46+ - name : Setup Pages
47+ uses : actions/configure-pages@v4
48+
49+ - name : Upload artifact
50+ uses : actions/upload-pages-artifact@v3
4251 with :
43- github_token : ${{ secrets.GITHUB_TOKEN }}
44- publish_dir : ./applications/dknet/frontend/build
52+ path : ' ./applications/dknet/frontend/build'
53+
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments