Repository navigation
fix: add router basename for GitHub Pages subpath deployment, fixes deployment issue #364
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| - staging | |
| - staging-debug | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - run: npm ci | |
| - run: npm run build | |
| env: | |
| BASE_URL: '/ePlant' | |
| VITE_MAPS_API_KEY: ${{ secrets.VITE_MAPS_API_KEY }} | |
| VITE_MAP_ID: ${{ secrets.VITE_MAP_ID }} |