Skip to content

Commit 98bcd86

Browse files
update deploy to latest versions
1 parent 2129d5c commit 98bcd86

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/deploy.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
name: Deploy static content
22

33
on:
4-
# Triggers the workflow on push or pull request events but only for the "master" branch
54
push:
65
branches: ["main"]
76

8-
# Allows you to run this workflow manually from the Actions tab
97
workflow_dispatch:
108

11-
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
129
permissions:
1310
contents: read
1411
pages: write
1512
id-token: write
1613

17-
# Allow one concurrent deployment
1814
concurrency:
1915
group: "pages"
2016
cancel-in-progress: true
2117

22-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2318
jobs:
24-
# Single deploy job since we're just deploying
2519
deploy:
2620
environment:
2721
name: github-pages
2822
url: ${{ steps.deployment.outputs.page_url }}
2923
runs-on: ubuntu-latest
3024
steps:
3125
- name: Checkout
32-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
27+
3328
- name: Set up Node
34-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3530
with:
3631
node-version: 20
3732
cache: "npm"
33+
3834
- name: Install dependencies
3935
run: npm install
36+
4037
- name: Setup stats
4138
env:
4239
STEAM_ID: ${{ secrets.STEAM_ID }}
@@ -46,20 +43,21 @@ jobs:
4643
GIT_API_KEY: ${{ secrets.GIT_API_KEY }}
4744
run: |
4845
bash setup-stats.sh
46+
4947
- name: Build
50-
run: |
51-
npm run build
48+
run: npm run build
49+
5250
- name: Copy missing static files
53-
run: |
54-
# Allow all routes to be served by index.html
55-
cp dist/index.html dist/404.html
51+
run: cp dist/index.html dist/404.html
52+
5653
- name: Setup Pages
57-
uses: actions/configure-pages@v3
54+
uses: actions/configure-pages@v4
55+
5856
- name: Upload artifact
59-
uses: actions/upload-pages-artifact@v1
57+
uses: actions/upload-pages-artifact@v2
6058
with:
61-
# Upload dist repository
6259
path: "./dist"
63-
- name: Deploy to Github Pages
60+
61+
- name: Deploy to GitHub Pages
6462
id: deployment
65-
uses: actions/deploy-pages@v1
63+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)