Skip to content

Merge pull request #9 from tawanda-kembo/feat/automate-versioning #9

Merge pull request #9 from tawanda-kembo/feat/automate-versioning

Merge pull request #9 from tawanda-kembo/feat/automate-versioning #9

name: Tag and Release
on:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Git
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- name: Print Git Config
run: git config --list
- name: Print Environment Variables
run: printenv
- name: Bump version and push tag
env:
DEFAULT_BUMP: minor
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: ./bump_version.sh
- name: Create Release
if: success()
uses: actions/create-release@v1
with:
tag_name: ${{ steps.tag.outputs.new_tag }}
release_name: Release ${{ steps.tag.outputs.new_tag }}
body: |
See [CHANGELOG](https://github.com/tawanda-kembo/code-collator/blob/main/CHANGELOG.md) for details.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}