Skip to content

Commit 946ee41

Browse files
committed
fix
1 parent 034e5ee commit 946ee41

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/webpack.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: Build & Deploy to GitHub Pages
44
on:
55
push:
66
branches: [ main ]
7+
# Don't run again when we push the built dist/ folder back
8+
paths-ignore:
9+
- 'dist/**'
10+
- '!.github/workflows/deploy.yml' # still pick up changes to the workflow itself
711
pull_request:
812
branches: [ main ]
913

@@ -12,31 +16,27 @@ jobs:
1216
runs-on: ubuntu-latest
1317
strategy:
1418
matrix:
15-
node-version: [18.x, 20.x, 22.x]
19+
node-version: [18.x,20.x,22.x]
1620

1721
steps:
18-
# 1) Check out the repo, keep credentials so we can push
1922
- name: Checkout code
2023
uses: actions/checkout@v4
2124
with:
2225
persist-credentials: true
2326

24-
# 2) Install the specified Node.js version
2527
- name: Setup Node.js ${{ matrix.node-version }}
2628
uses: actions/setup-node@v4
2729
with:
2830
node-version: ${{ matrix.node-version }}
2931

30-
# 3) Install deps and build production bundle
31-
- name: Install dependencies & Build
32+
- name: Install dependencies & build
3233
run: |
3334
npm ci
3435
npm run build
3536
36-
# 4) Deploy the `dist/` folder to the `main` branch root
3737
- name: Deploy to GitHub Pages
3838
uses: peaceiris/actions-gh-pages@v3
3939
with:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
41-
publish_branch: main # push back to main
42-
publish_dir: ./dist # the folder Vite outputs
41+
publish_branch: main
42+
publish_dir: ./dist

0 commit comments

Comments
 (0)