@@ -4,21 +4,22 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : ['main' ]
7+ branches : [$default-branch ]
88
99 # Allows you to run this workflow manually from the Actions tab
1010 workflow_dispatch :
1111
12- # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
12+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313permissions :
1414 contents : read
1515 pages : write
1616 id-token : write
1717
18- # Allow one concurrent deployment
18+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1920concurrency :
2021 group : ' pages'
21- cancel-in-progress : true
22+ cancel-in-progress : false
2223
2324jobs :
2425 # Single deploy job since we're just deploying
2930 runs-on : ubuntu-latest
3031 steps :
3132 - name : Checkout
32- uses : actions/checkout@v3
33+ uses : actions/checkout@v4
3334 - name : Set up Node
34- uses : actions/setup-node@v3
35+ uses : actions/setup-node@v4
3536 with :
3637 node-version : 20
3738 cache : ' npm'
@@ -40,12 +41,12 @@ jobs:
4041 - name : Build
4142 run : npm run build
4243 - name : Setup Pages
43- uses : actions/configure-pages@v3
44+ uses : actions/configure-pages@v5
4445 - name : Upload artifact
45- uses : actions/upload-pages-artifact@v1
46+ uses : actions/upload-pages-artifact@v3
4647 with :
4748 # Upload dist repository
4849 path : ' ./dist'
4950 - name : Deploy to GitHub Pages
5051 id : deployment
51- uses : actions/deploy-pages@v1
52+ uses : actions/deploy-pages@v4
0 commit comments