Skip to content

Commit

Permalink
Update promote-to-prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kosserin authored Feb 3, 2025
1 parent af587fb commit 703d6f4
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/promote-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@ name: Promote Preview to Production
on:
workflow_dispatch:
inputs:
channel_id:
preview_channel:
description: 'Preview channel to promote'
required: true
default: 'preview'
type: string

jobs:
promote_preview:
deploy-to-production:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Deploy to Firebase Production Channel
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Firebase CLI
run: npm install -g firebase-tools

- name: Deploy to Production
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
revertOnFailure: true
channelId: ${{ github.event.inputs.preview_channel }}
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_REACT_PORTFOLIO_FEF74 }}'
channelId: '${{ github.event.inputs.channel_id }}'
projectId: react-portfolio-fef74
projectId: your-firebase-project-id

0 comments on commit 703d6f4

Please sign in to comment.