From 4024db84333c85841330bffe5bf1e7fb31a6587c Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 5 Jun 2025 22:04:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0githubAction=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7c27074..449f02b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,14 +7,13 @@ on: jobs: deploy: runs-on: ubuntu-latest - # defaults: - #run: - # working-directory: src/frontend - steps: - uses: actions/checkout@v4 - - name: Navigate to project - run: cd src/frontend && echo "PROJECT_DIR=$(pwd)" >> $GITHUB_ENV + + - name: Configure Git + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -26,7 +25,7 @@ jobs: with: node-version: 20 cache: 'pnpm' - cache-dependency-path: src/frontend/pnpm-lock.yaml + cache-dependency-path: 'src/frontend/pnpm-lock.yaml' - name: Install dependencies working-directory: src/frontend @@ -36,7 +35,7 @@ jobs: working-directory: src/frontend run: pnpm run build - - name: Deploy + - name: Deploy to GitHub Pages working-directory: src/frontend run: npx gh-pages -d build env: