mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-07-04 13:19:20 +00:00
调试githubAction
This commit is contained in:
parent
21e8b9df92
commit
47fd698d8a
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@ -13,12 +13,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Navigate to project
|
||||||
# 调试:检查文件结构(临时添加)
|
run: cd src/frontend && echo "PROJECT_DIR=$(pwd)" >> $GITHUB_ENV
|
||||||
- name: Debug - Check files
|
|
||||||
run: |
|
|
||||||
echo "Root directory:"
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
@ -30,14 +26,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
cache-dependency-path: src/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: src/frontend
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
working-directory: src/frontend
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
working-directory: src/frontend
|
||||||
run: npx gh-pages -d build
|
run: npx gh-pages -d build
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user