Skip to content

Manual CD

Manual CD #20

name: Manual CD
on:
workflow_dispatch:
inputs:
environment:
type: environment
required: true
jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.environment }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dispatch CD Event
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CD_ACCESS_TOKEN }}
event-type: CD
client-payload: '{"environment": "${{ github.event.inputs.environment }}", "ref": "${{ github.ref }}"}'