From 6f54cd120e14c01465a04bce4682f29f60c3607c Mon Sep 17 00:00:00 2001 From: vcoppe Date: Fri, 12 Jul 2024 15:41:40 +0200 Subject: [PATCH] test with env file --- .github/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 23c69941..da7d6393 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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