Skip to content

pre-release: #patch #14

pre-release: #patch

pre-release: #patch #14

Workflow file for this run

name: Tag and Release
on:
pull_request:
types:
- closed
branches:
- main
jobs:
tag:
name: Version Tag
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_tag: ${{ steps.version_tag.outputs.new_tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: "0"
- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
id: version_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
BRANCH_HISTORY: last
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 }}