Skip to content

Commit

Permalink
fix env file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiion committed Aug 7, 2024
1 parent e8df92f commit d05f51b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -57,18 +58,11 @@ jobs:
- name: Install dependencies
run: bun install
- name: create env file
env:
SPARQL_ENDPOINT: ${{ vars.SPARQL_ENDPOINT }}
NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID }}
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
run: |
rm ./apps/exhibition-live/.env*
touch ./apps/exhibition-live/.env
echo NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID="$NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID" >> ./apps/exhibition-live/.env
echo "${{ vars.LOCAL_ENV_FILE }}" > ./apps/exhibition-live/.env
echo NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID="${{ vars.NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID }}" >> ./apps/exhibition-live/.env
echo NEXT_PUBLIC_BASE_PATH="/${{ github.event.repository.name }}" >> ./apps/exhibition-live/.env
echo SPARQL_ENDPOINT="https://ausstellungsdatenbank.kuenste.live/query" >> ./apps/exhibition-live/.env
echo SPARQL_ENDPOINT_LABEL="Local Testing" >> ./apps/exhibition-live/.env
echo SPARQL_ENDPOINT_PROVIDER="oxigraph" >> ./apps/exhibition-live/.env
- name: Build with Next.js
run: bun run build
- name: Static HTML export with Next.js
Expand Down

0 comments on commit d05f51b

Please sign in to comment.