Skip to content

Merge pull request #6 from bunkrur/main #34

Merge pull request #6 from bunkrur/main

Merge pull request #6 from bunkrur/main #34

Workflow file for this run

name: Create Tag and Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # Allow pushing the tag
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Bump version and tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1 # More robust tag/release action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch # Start with patch, customizable with inputs
- name: Push new tag
run: |
git fetch --tags
git push origin ${{ steps.tag_version.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}