Skip to content

Commit

Permalink
chore: Github Action test (manual deploy)
Browse files Browse the repository at this point in the history
  • Loading branch information
endoooo committed Feb 2, 2024
1 parent 2eadec3 commit 61cf966
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fly Deploy Prod

on:
workflow_run:
workflows: [Deploy app]
types:
- completed
workflow_dispatch:
inputs:
deployProd:
description: 'Deploy in prod?'
required: true
type: boolean

jobs:
production-deploy:
name: Deploy app in production
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && inputs.deployProd }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 61cf966

Please sign in to comment.