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:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# 调试:检查文件结构(临时添加)
|
||||
- name: Debug - Check files
|
||||
run: |
|
||||
echo "Root directory:"
|
||||
ls -la
|
||||
- name: Navigate to project
|
||||
run: cd src/frontend && echo "PROJECT_DIR=$(pwd)" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
@ -30,14 +26,18 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: src/frontend/pnpm-lock.yaml
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: src/frontend
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
working-directory: src/frontend
|
||||
run: pnpm run build
|
||||
|
||||
- name: Deploy
|
||||
working-directory: src/frontend
|
||||
run: npx gh-pages -d build
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user