Release #7
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
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 |