Skip to content

Commit

Permalink
feat: add manual deploy trigger (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
araphiel-nf authored Jan 24, 2024
1 parent fad527e commit c107108
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Manual Deploy

on:
workflow_dispatch:
inputs:
environment:
description: 'Deploy environment'
type: environment
required: true
tag:
description: 'Tag to deploy (e.g., v1.0.0)'
type: string
required: true

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.environment }}
steps:
- name: Checkout ${{ github.event.inputs.tag }}
uses: actions/checkout@v4

- name: Deploying to ${{ github.event.inputs.environment }}
run: echo "Deploy to AppCenter"

wait_for_approval:
name: Wait for manual testing approval
needs: deploy
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Wait for approval
run: echo "Deployment approved"

0 comments on commit c107108

Please sign in to comment.