Skip to content

Release

Release #6

env: {}
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/action-release
# SOURCE: https://github.com/fregante/ghatemplates
name: Release
on:
workflow_dispatch:
# You can manually trigger a deployment on GitHub.com
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
inputs:
Version:
description: 'Example: v1.2.3'
required: true
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: gh release create ${{ github.event.inputs.Version }} --generate-notes
env:
GH_TOKEN: ${{ github.token }}
- name: Update major tag
run: |
MAJOR=$(echo ${{ github.event.inputs.Version }} | sed 's/\..*//')
git push origin HEAD:refs/tags/$MAJOR --force