Skip to content

Commit 3e6f3c0

Browse files
workflows update
1 parent 543a12d commit 3e6f3c0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ on:
66
- main
77

88
permissions:
9-
contents: write # Allows actions to push to the repository (required for gh-pages)
10-
pages: write # Allows actions to deploy to GitHub Pages
11-
9+
contents: write # Allows actions to push to the repository (required for gh-pages)
10+
pages: write # Allows actions to deploy to GitHub Pages
11+
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
1616
# Step 1: Checkout the code
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4.2.2
1919

2020
# Step 2: Set up Node.js using .nvmrc
2121
- name: Set up Node.js
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4.3.0
2323
with:
2424
node-version-file: .nvmrc
2525

@@ -33,7 +33,7 @@ jobs:
3333

3434
# Step 5: Upload production-ready build files (artifact)
3535
- name: Upload production-ready build files
36-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4.6.1
3737
with:
3838
name: production-files
3939
path: ./dist
@@ -44,14 +44,14 @@ jobs:
4444
steps:
4545
# Step 1: Download artifact
4646
- name: Download artifact
47-
uses: actions/download-artifact@v3
47+
uses: actions/download-artifact@v4.2.0
4848
with:
4949
name: production-files
5050
path: ./dist
5151

5252
# Step 2: Deploy to GitHub Pages
5353
- name: Deploy to GitHub Pages
54-
uses: peaceiris/actions-gh-pages@v3
54+
uses: peaceiris/actions-gh-pages@v4.0.0
5555
with:
5656
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./dist
57+
publish_dir: ./dist

0 commit comments

Comments
 (0)