Skip to content

Commit 30fde20

Browse files
authored
Merge pull request #4 from shugaoye/master
ci(github actions): 调整静态部署工作流的目录配置
2 parents 1203a4b + 685a892 commit 30fde20

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/deploy-static.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ jobs:
1717
with:
1818
node-version: 20.x
1919

20-
- name: Change to finanalyzer-app directory
21-
run: cd finanalyzer-app
22-
2320
- name: Install dependencies
2421
run: npm install
25-
working-directory: finanalyzer-app
22+
working-directory: app
2623

2724
- name: Create .env file
2825
run: |
@@ -31,21 +28,16 @@ jobs:
3128
echo "VITE_PROXY_PATH=${{ secrets.VITE_PROXY_PATH }}" >> .env
3229
echo "VITE_PROXY_TARGET_URL=${{ secrets.VITE_PROXY_TARGET_URL }}" >> .env
3330
cat .env
34-
working-directory: finanalyzer-app
35-
36-
- name: Debug - Check environment variables
37-
run: |
38-
echo "VITE_API_BASE_URL from env: $VITE_API_BASE_URL"
39-
working-directory: finanalyzer-app
31+
working-directory: app
4032

4133
- name: Build static assets
4234
run: npm run build:static
43-
working-directory: finanalyzer-app
35+
working-directory: app
4436

4537
- name: Deploy to GitHub Pages
4638
uses: peaceiris/actions-gh-pages@v4
4739
with:
4840
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: ./finanalyzer-app/dist-static
41+
publish_dir: ./app/dist-static
5042
publish_branch: gh-pages
5143
force_orphan: true

0 commit comments

Comments
 (0)