Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 3d7c2b9

Browse files
committed
update CI
1 parent c0cdbc2 commit 3d7c2b9

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed

.github/workflows/deploy.yml renamed to .github/workflows/ci.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: Deploy to GitHub Pages
1+
name: CI
22

33
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths-ignore:
7+
- 'README.md'
48
push:
59
branches:
610
- main
@@ -16,17 +20,19 @@ jobs:
1620

1721
- uses: pnpm/action-setup@v2
1822
with:
19-
version: 6.32.9
23+
version: 8.10.2
2024

2125
- uses: actions/setup-node@v3
2226
with:
23-
node-version: '16'
27+
node-version: '18'
2428
cache: 'pnpm'
2529

2630
- run: pnpm install --frozen-lockfile
2731

2832
- run: pnpm run build
33+
2934
- name: Deploy to GitHub Pages
35+
if: ${{ github.ref_name == 'main' }}
3036
uses: peaceiris/actions-gh-pages@v3
3137
with:
3238
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-deploy.yml

-27
This file was deleted.

0 commit comments

Comments
 (0)