diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index f4688c9..fb9f073 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -74,6 +74,13 @@ jobs: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: 'Create env file' + run: | + touch .env + echo APP_ID=${{ secrets.APP_ID }} >> .env + echo APP_SECRET=${{ secrets.APP_SECRET }} >> .env + echo SPACE_ID=${{ secrets.SPACE_ID }} >> .env + echo SITE_URL=${{ vars.SITE_URL }} >> .env - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact