diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 6e38849..804ed56 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 96596e0..103315d 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -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 @@ -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 }}