Skip to content

Commit

Permalink
ci: GitHub actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Aug 17, 2024
1 parent 5705980 commit 5cb4ee5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,34 @@ on:
push:
branches:
- source
workflow_dispatch:

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 'lts/*'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Vite generate
- name: Run generate
run: pnpm run generate

- name: deploy
uses: peaceiris/actions-gh-pages@v3
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: release
Expand Down

0 comments on commit 5cb4ee5

Please sign in to comment.