Skip to content

Commit

Permalink
set BASE_PATH using bash
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Apr 16, 2024
1 parent b1ba5f2 commit e59d86b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
run: |
echo "VITE_BASE=https://${GITHUB_REPOSITORY_OWNER,,}.github.io/${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Set BASE_PATH
run: |
echo "BASE_PATH=/${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -32,7 +36,7 @@ jobs:

- name: build
env:
BASE_PATH: '/${GITHUB_REPOSITORY#*/}'
BASE_PATH: ${{ env.BASE_PATH }}
VITE_BASE: ${{ env.VITE_BASE }}
run: |
cd inner-app && npm run build && cd .. && npm run build
Expand Down

0 comments on commit e59d86b

Please sign in to comment.