Skip to content

Commit 6d7896e

Browse files
committed
fix: workflow
1 parent 44de373 commit 6d7896e

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/static.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,37 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
- name: Setup node
36-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3737
with:
38-
node-version: 16.x
38+
node-version: 18.x
39+
cache: "yarn"
40+
41+
- name: Install dependencies
42+
run: yarn install --frozen-lockfile
3943

4044
- name: Build project
45+
run: yarn build
46+
47+
- name: Verify build output
4148
run: |
42-
yarn install
43-
yarn build
49+
if [ ! -d "./dist" ]; then
50+
echo "Build output directory 'dist' not found!"
51+
exit 1
52+
fi
53+
echo "Build output found:"
54+
ls -la ./dist
4455
4556
- name: Setup Pages
46-
uses: actions/configure-pages@v3
57+
uses: actions/configure-pages@v4
4758

4859
- name: Upload artifact
49-
uses: actions/upload-pages-artifact@v1
60+
uses: actions/upload-pages-artifact@v3
5061
with:
5162
path: "./dist"
5263

5364
- name: Deploy to GitHub Pages
5465
id: deployment
55-
uses: actions/deploy-pages@v2
66+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)