diff --git a/.github/workflows/adev-preview-deploy.yml b/.github/workflows/adev-preview-deploy.yml index 57645dc46..252b9c071 100644 --- a/.github/workflows/adev-preview-deploy.yml +++ b/.github/workflows/adev-preview-deploy.yml @@ -51,6 +51,16 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_PAGES_PROJECT: ${{ vars.CLOUDFLARE_PAGES_PROJECT }} + - name: Deploy to Firebase Hosting Preview + id: firebase-deploy + uses: FirebaseExtended/action-hosting-deploy@v0.9.0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" + projectId: angular-ja + channelId: pr-${{ steps.pr-number.outputs.value }} + expires: 7d + disableComment: true - name: Find Comment uses: peter-evans/find-comment@v3 id: find-comment @@ -67,5 +77,6 @@ jobs: comment-id: ${{ steps.find-comment.outputs.comment-id }} edit-mode: replace body: | - Preview deployed to https://pr-${{ steps.pr-number.outputs.value }}.dev-angular-jp.pages.dev (commit: ${{ steps.commit-hash.outputs.value }}) - + Preview deployed: (commit: ${{ steps.commit-hash.outputs.value }}) + - https://pr-${{ steps.pr-number.outputs.value }}.dev-angular-jp.pages.dev + - ${{ steps.firebase-deploy.outputs.details_url }}