From 5cb4ee5b937141ab3f2e83111e58fb0bc5c92be4 Mon Sep 17 00:00:00 2001 From: Surmon Date: Sun, 18 Aug 2024 04:21:36 +0800 Subject: [PATCH] ci: GitHub actions script --- .github/workflows/deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d9532429..69e396e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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