Skip to content

Commit

Permalink
chore: make deployment URL path configurable
Browse files Browse the repository at this point in the history
use the BASE_PATH github action variable
  • Loading branch information
urish committed Sep 24, 2024
1 parent 0e95d2c commit 23aad10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
env:
BASE_PATH: ${{ vars.BASE_PATH || '/vga-playground' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -38,7 +40,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build -- --base /vga-playground
run: npm run build -- --base $BASE_PATH
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down

0 comments on commit 23aad10

Please sign in to comment.