Skip to content

Tag and Release

Tag and Release #20

Workflow file for this run

name: Tag and Release
on:
workflow_dispatch:
inputs:
bump:
type: choice
description: Version bump to perform
required: true
options:
- "#patch"
- "#minor"
- "#major"
jobs:
tag:
name: Version Tag
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_tag: ${{ steps.tag.outputs.new_tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: ${{ github.event.inputs.bump }}
WITH_V: true
BRANCH_HISTORY: last
DRY_RUN: true
# - name: Bump version and push tag
# id: tag
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# default_bump: ${{ github.event.inputs.bump }}
# dry_run: true
# create_annotated_tag: false
# release:
# needs: [tag]
# name: Release
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Release with latest tag
# uses: softprops/action-gh-release@v2
# with:
# tag_name: ${{ needs.tag.outputs.new_tag }}
# generate_release_notes: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}