Skip to content

Commit

Permalink
GH envs
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Aug 24, 2024
1 parent 10fda59 commit 0aa0b96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
environment:
name: production
url: ${{ steps.firebase-deploy.outputs.details_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -22,6 +26,7 @@ jobs:
VITE_COMMIT_REF: ${{ github.sha }}
VITE_CONTEXT: production
- uses: FirebaseExtended/action-hosting-deploy@v0
id: firebase-deploy
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROPESCORE_APP }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
timeout-minutes: 30
environment:
name: ${{ github.ref_name }}
url: ${{ steps.firebase-deploy.outputs.details_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -24,6 +28,7 @@ jobs:
VITE_COMMIT_REF: ${{ github.sha }}
VITE_CONTEXT: ${{ github.ref_name }}
- uses: FirebaseExtended/action-hosting-deploy@v0
id: firebase-deploy
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROPESCORE_APP }}
Expand Down

0 comments on commit 0aa0b96

Please sign in to comment.