chore: update GitHub Actions workflow for website deployment by removing unnecessary working-directory specification and adjusting cache paths for pnpm

This commit is contained in:
jinmingyang
2026-01-19 14:00:52 +08:00
parent a1a882b8d9
commit acc97a3941
+3 -6
View File
@@ -21,9 +21,6 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -38,7 +35,7 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: 'website/pnpm-lock.yaml'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Get pnpm store directory
shell: bash
@@ -49,7 +46,7 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('website/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
@@ -57,7 +54,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build website
run: pnpm build
run: pnpm --filter ai-workflow-website build
env:
NEXT_PUBLIC_SITE_URL: https://ai-workflow.xiaominglab.com
NEXT_PUBLIC_GIT_SHA: ${{ github.sha }}