mirror of
https://github.com/nicepkg/ai-workflow.git
synced 2026-11-18 18:04:23 +00:00
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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user