-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add manual deploy trigger (#4)
- Loading branch information
1 parent
fad527e
commit c107108
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |