Skip to content

Commit

Permalink
Merge pull request #60 from adrianvrj/feat-fix-env-var
Browse files Browse the repository at this point in the history
[CI] added env var when building with next js
  • Loading branch information
adrianvrj authored Aug 28, 2024
2 parents b3f38b0 + 04a2194 commit 1fe5b7f
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,9 @@ defaults:
working-directory: frontend/gostarkme-web

jobs:
create-envfile:

runs-on: ubuntu-latest

steps:
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_ROOT: "https://web3wagers.github.io/gostarkme/"
file_name: .env

# Build job
build:
runs-on: ubuntu-latest
needs: create-envfile
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -86,7 +74,11 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
env:
ROOT: ${{ vars.ROOT }}
run: |
echo "ROOT is ${{ vars.ROOT }}"
${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 1fe5b7f

Please sign in to comment.