Skip to content

Commit 549bae6

Browse files
authored
upgrade GH pages deploy (#139)
1 parent 9be6c41 commit 549bae6

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/static.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,27 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1110
permissions:
1211
contents: read
1312
pages: write
1413
id-token: write
1514

16-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1815
concurrency:
1916
group: "pages"
20-
cancel-in-progress: false
17+
cancel-in-progress: true
2118

2219
jobs:
23-
# Single deploy job since we're just deploying
2420
deploy:
25-
environment:
26-
name: github-pages
27-
url: ${{ steps.deployment.outputs.page_url }}
2821
runs-on: ubuntu-latest
2922
steps:
30-
- uses: actions/checkout@v3
31-
- uses: actions/setup-node@v3
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
3225
with:
3326
node-version-file: '.nvmrc'
3427
- run: yarn install --frozen-lockfile
3528
- run: yarn build:stories
36-
- uses: actions/configure-pages@v3
37-
- uses: actions/upload-pages-artifact@v1
29+
- uses: actions/configure-pages@v4
30+
- uses: actions/upload-pages-artifact@v3
3831
with:
39-
# Upload entire repository
40-
path: './build'
41-
- uses: actions/deploy-pages@v2
32+
path: build
33+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)