Github Action to create Github Release.
Create a new folder workflows and create yaml file example myWorkflow.yml in the repository you are trying to use this release action. Copy below yaml code in this file.
name: Bump Version and Tag
on:
push:
branches:
- "master"
- "sit"
- "alpha"
- "sandbox"
jobs:
build-and-push:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Bump and Tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Bump and Tag
id: bump_and_tag
uses: konsentus/action.bump-version-and-tag@master
- name: Release
if: github.ref == 'refs/heads/master'
uses: konsentus/action.create-release@master
with:
new_version_tag: ${{ steps.bump_and_tag.outputs.new_version_tag }}GITHUB_TOKEN: The token required to authenticate on Github.
new_version_tag: New tag to be released in Github.