Skip to content

Commit

Permalink
fix: define target env on top
Browse files Browse the repository at this point in the history
  • Loading branch information
weaponsforge committed Sep 27, 2024
1 parent 1dc168a commit c66b2a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- dev
- feat/weaponsforge-143

env:
FIREBASE_TARGET: 'dev'

jobs:
lint-export-client:
name: Lint and Export client
Expand All @@ -19,7 +22,6 @@ jobs:
NEXT_PUBLIC_FIREBASE_WEB_PROJECT_ID: ${{ secrets.FIREBASE_WEB_PROJECT_ID_DEV }}
NEXT_PUBLIC_FIREBASE_WEB_STORAGE_BUCKET: ${{ secrets.FIREBASE_WEB_STORAGE_BUCKET_DEV }}
FIREBASE_HOSTING_DEV: ${{ secrets.FIREBASE_HOSTING_DEV }}
FIREBASE_TARGET: 'dev'
steps:
- name: Checkout the repository
uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
release:
types: [published]

env:
FIREBASE_TARGET: 'prod'

jobs:
lint-export-client:
name: Lint and Export client
Expand All @@ -16,7 +19,6 @@ jobs:
NEXT_PUBLIC_FIREBASE_WEB_AUTHDOMAIN: ${{ secrets.FIREBASE_WEB_AUTHDOMAIN_PROD }}
NEXT_PUBLIC_FIREBASE_WEB_PROJECT_ID: ${{ secrets.FIREBASE_WEB_PROJECT_ID_PROD }}
NEXT_PUBLIC_FIREBASE_WEB_STORAGE_BUCKET: ${{ secrets.FIREBASE_WEB_STORAGE_BUCKET_PROD }}
FIREBASE_TARGET: 'prod'
steps:
- name: Checkout the repository
uses: actions/checkout@v3
Expand Down

0 comments on commit c66b2a7

Please sign in to comment.