Skip to content

Commit 96c0b5c

Browse files
authored
Update nextjs.yml
1 parent eff2ee6 commit 96c0b5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/nextjs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ jobs:
5353
- name: Install dependencies
5454
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
5555
- name: Make .env file
56-
run: ${{ steps.detect-package-manager.outputs.manager }} run --silent env > .env && ls
56+
uses: skiddph/actions-env@v1.0.2
57+
env:
58+
ENV_NEXT_PUBLIC_BACKEND_URL: ${{ secrets.BACKEND_URL }}
59+
ENV_NEXT_PUBLIC_FRONTEND_URL: ${{ secrets.FRONTEND_URL }}
60+
ENV_NEXT_PUBLIC_GOOGLE_ANALYTICS_TAG_ID: ${{ secrets.GOOGLE_ANALYTICS_TAG_ID }}
5761
- name: Build and statically render nextjs with Next.js
5862
run: ${{ steps.detect-package-manager.outputs.manager }} run build
5963
- run: echo '' > ./out/_next/.nojekyll

0 commit comments

Comments
 (0)