Skip to content

Commit

Permalink
ci: attempt 1 to access env in staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
longwind48 committed Dec 15, 2024
1 parent c499fa4 commit fbaeba2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ jobs:
- name: Install dependencies and build
env:
APP_ENV: staging
NEXT_PUBLIC_API_BASE_URL: ${{ env.NEXT_PUBLIC_API_BASE_URL }}
NEXT_PUBLIC_API_BASE_URL: ${{ vars.NEXT_PUBLIC_API_BASE_URL }}
run: |
cd frontend
npm ci
npm install sharp
npm run build
- name: Debug
run: echo "API URL is $NEXT_PUBLIC_API_BASE_URL"
- name: Debug Variables
run: |
echo "Using vars context: ${{ vars.NEXT_PUBLIC_API_BASE_URL }}"
echo "Current branch: ${{ github.ref_name }}"
echo "All environment variables:"
env
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -53,4 +57,4 @@ jobs:
entryPoint: ./frontend
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
NEXT_PUBLIC_API_BASE_URL: ${{ env.NEXT_PUBLIC_API_BASE_URL }}
NEXT_PUBLIC_API_BASE_URL: ${{ vars.NEXT_PUBLIC_API_BASE_URL }}

0 comments on commit fbaeba2

Please sign in to comment.