Skip to content

Commit

Permalink
fix CI dependency no env bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Mar 29, 2024
1 parent fd8ddd9 commit 9e0f7a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ jobs:
run: rm -f pnpm-lock.yaml
- name: Install dependencies
run: bun install
- name: Build with Next.js
- name: create env file
env:
NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID }}
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
run: |
touch .env
echo EXT_PUBLIC_GAPI_OAUTH_CLIENT_ID="${{ secrets.NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID }}" >> .env
echo NEXT_PUBLIC_BASE_PATH="/${{ github.event.repository.name }}"
- name: Build with Next.js
run: bun run build
- name: Static HTML export with Next.js
run: bun run build:pages
Expand Down

0 comments on commit 9e0f7a1

Please sign in to comment.