Skip to content

Manual Deployment

Manual Deployment #3

Workflow file for this run

name: Manual Deployment
on:
workflow_dispatch:
inputs:
version:
description: 'Tag version to deploy (e.g., v1.2.3)'
required: true
jobs:
deploy:
runs-on: 'ubuntu-latest'
steps:
- name: Verify tag exists
run: |
TAG_EXISTS=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/git/ref/tags/${{ github.event.inputs.version }}" | jq -r ".ref")
if [ "$TAG_EXISTS" == "null" ]; then
echo "Error: Tag ${{ github.event.inputs.version }} does not exist!"
exit 1
fi
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy
run: echo ${{ github.event.inputs.version }}