test with env file

This commit is contained in:
vcoppe
2024-07-12 15:41:40 +02:00
parent de09ab0a24
commit 6f54cd120e

View File

@@ -28,10 +28,15 @@ jobs:
- name: Install dependencies for website
run: npm install --prefix website
- name: Create env file
run: |
touch website/.env
echo PUBLIC_MAPBOX_TOKEN=${{ secrets.PUBLIC_MAPBOX_TOKEN }} >> website/.env
cat website/.env
- name: Build website
env:
BASE_PATH: '/${{ github.event.repository.name }}'
PUBLIC_MAPBOX_TOKEN: ${{ secrets.PUBLIC_MAPBOX_TOKEN }}
run: |
npm run build --prefix website