Skip to content

Commit

Permalink
ci: update v1 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jan 5, 2025
1 parent edcf11c commit 87b4a22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: CI

on:
push:
branches: [main]
branches:
- v1
pull_request:
branches: [main]
branches:
- v1

jobs:
build:
Expand All @@ -14,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: npm install
- run: npm run lint
- run: npm run build
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
with:
ref: gh-pages
clean: false
- run: cp -rf .temp/* .
- run: rm -rf v1
- run: mkdir -p v1
- run: cp -rf .temp/* v1
- run: rm -r .temp
- run: git config user.name "${{ github.actor }}"
- run: git config user.email "${{ github.actor }}@users.noreply.github.com"
- run: git add --all
- run: git add v1
- run: git commit --message "${{ github.ref_name }}"
- run: git push

0 comments on commit 87b4a22

Please sign in to comment.