Skip to content

Commit

Permalink
DRY up VITE_BASE_DIR usage in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhonas committed Apr 26, 2023
1 parent 6951543 commit 9cb649e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test, Lint & Deploy Site to Github Pages

env:
VITE_BASE_DIR: /free-exercise-db/
VITE_BASE_DIR: ${{ github.event.repository.name }}

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
build: npm run build
start: npm run preview
working-directory: site
config: baseUrl=http://localhost:4173/free-exercise-db/
config: baseUrl=http://localhost:4173/${{ github.event.repository.name }}

deploy:
needs: [lint,test]
Expand Down

0 comments on commit 9cb649e

Please sign in to comment.