Merge pull request #6 from bunkrur/main #34
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
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 }} |