Skip to content

Paramesh

Paramesh #2

Workflow file for this run

# Create a tag when a PR is merged into the main branch and release it
name: Tag and create release
on:
pull_request:
types:
- closed
branches:
- main
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: "0"
- name: Bump version and push tag
uses: anothrNick/[email protected]
id: create_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
PRERELEASE: false
RELEASE_BRANCHES: main
- name: Create a Release
run: gh release create -t "${{ steps.create_tag.outputs.new_tag }}" "${{ steps.create_tag.outputs.new_tag }}" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GH_TOKEN: ${{ github.token }}