Skip to content

Commit eeb6010

Browse files
committed
feat: update deploy workflow
1 parent d4be582 commit eeb6010

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy
33
on:
44
# Update on pushes to main
55
push:
6-
branches: ["main"]
6+
branches: [main]
77

88
# Allow running workflow manually
99
workflow_dispatch:
@@ -16,7 +16,7 @@ permissions:
1616

1717
# Only run one at a time, but don't cancel in-progress deployments
1818
concurrency:
19-
group: "pages"
19+
group: pages
2020
cancel-in-progress: false
2121

2222
jobs:
@@ -25,28 +25,28 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Install pnpm
31-
uses: pnpm/action-setup@v2
31+
uses: pnpm/action-setup@v4
3232
with:
33-
version: 8
33+
version: 9
3434

3535
- name: Install Node.js
36-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3737
with:
38-
node-version: "18"
39-
cache: "pnpm"
38+
node-version: 18
39+
cache: pnpm
4040

4141
- name: Build site
4242
run: |
4343
pnpm install
4444
pnpm generate
4545
4646
- name: Upload site artifact
47-
uses: actions/upload-pages-artifact@v1
47+
uses: actions/upload-pages-artifact@v3
4848
with:
49-
path: ".output/public"
49+
path: .output/public
5050

5151
# Download build's artifact and publish site
5252
deploy:
@@ -57,4 +57,4 @@ jobs:
5757
needs: build
5858
steps:
5959
- name: Deploy to Github Pages
60-
uses: actions/deploy-pages@v2
60+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)