Skip to content

Deploy Main Production (Single-Server) #379

Deploy Main Production (Single-Server)

Deploy Main Production (Single-Server) #379

name: Deploy Main Production (Single-Server)
on:
push:
branches: [main]
schedule:
# Run every 6 hours at 00:00, 06:00, 12:00, 18:00 UTC
- cron: '0 */6 * * *'
workflow_dispatch:
inputs:
trigger_source:
description: 'Source that triggered this deployment'
required: false
default: 'manual'
type: string
update_reason:
description: 'Reason for update (from scheduled workflow)'
required: false
type: string
permissions:
contents: read
deployments: write
checks: write
pull-requests: write
jobs:
deploy:
uses: ./.github/workflows/reusable-deploy.yml
with:
deployment_channel: 'live'
deployment_type: 'main'
trigger_source: ${{ github.event.inputs.trigger_source || (github.event_name == 'push' && 'push') || (github.event_name == 'schedule' && 'scheduled') || 'manual' }}
update_reason: ${{ github.event.inputs.update_reason }}
secrets:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_LAURIECREAN_FREE_38256 }}