diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 2bc3846..bc918c6 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -1,10 +1,15 @@ on: workflow_call: + inputs: + environment: + required: true + type: string jobs: # Build job build-and-deploy: runs-on: ubuntu-latest + environment: ${{ inputs.environment }} env: NEXT_PUBLIC_API_URL: ${{ secrets.API_URL }} steps: diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index f296a91..8df11d9 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -16,4 +16,6 @@ jobs: build-deploy-dev: uses: ./.github/workflows/build-deploy.yml secrets: inherit + with: + environment: dev