Skip to content

Tag Release

Tag Release #30

Workflow file for this run

name: Tag Release
on:
workflow_dispatch:
inputs:
version:
description: 'The version to tag'
required: true
type: string
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Files
env:
VERSION: ${{ inputs.version }}
run: |-
echo $VERSION > version
- name: "Create Tag"
env:
VERSION: ${{ inputs.version }}
run: |-
git add ./*
git config user.name github-actions
git config user.email github-actions@github.com
git commit -m "Tagged ${VERSION}"
git push origin main
git tag ${VERSION}
git push --tags
- name: "Create Release"
uses: ncipollo/release-action@v1
with:
draft: true
generateReleaseNotes: true
tag: ${{ inputs.version }}