Skip to content

Commit

Permalink
chore: enable preview deployment to firebase hosting (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
lacolaco authored Aug 23, 2024
1 parent 5facd55 commit 6ffd460
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/adev-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand All @@ -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 }}

0 comments on commit 6ffd460

Please sign in to comment.