Skip to content

Commit 447aff8

Browse files
authored
Update nextjs.yml
1 parent 77e2a85 commit 447aff8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/nextjs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ jobs:
5252
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
5353
- name: Install dependencies
5454
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
55-
- name: Make .env fil
56-
uses: SpicyPizza/create-envfile@v1
57-
with:
58-
envkey_NEXT_PUBLIC_BACKEND_URL: ${{ vars.BACKEND_URL }}
59-
envkey_NEXT_PUBLIC_FRONTEND_URL: ${{ vars.FRONTEND_URL }}
60-
envkey_NEXT_PUBLIC_GOOGLE_ANALYTICS_TAG_ID: ${{ vars.GOOGLE_ANALYTICS_TAG_ID }}
61-
fail_on_empty: true
55+
- name: Make .env file
56+
run: |
57+
echo ${{ vars.DOTENV }} >> .env
58+
ls -a
59+
cat .env
6260
- name: Build and statically render nextjs with Next.js
6361
run: ${{ steps.detect-package-manager.outputs.manager }} run build
6462
- run: echo '' > ./out/_next/.nojekyll

0 commit comments

Comments
 (0)