This action automates tag creation and moving single digit tag.
It also generate a github release with the changelog.
Create a workflow .yml
file in your repository's .github/workflows
directory. An example workflow is available below. For more information, see the GitHub Help Documentation for Creating a workflow file.
If you are using this inside a container, a POSIX-compliant tar
needs to be included and accessible from the execution path.
If you are using a self-hosted
Windows runner, GNU tar
and zstd
are required for Cross-OS caching to work. They are also recommended to be installed in general so the performance is on par with hosted
Windows runners.
name: tag-and-release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions:
contents: write
jobs:
tag-and-release:
name: Tag and release
runs-on: nodejs-16-small
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.CS_CI_GITHUB_TOKEN }}
fetch-depth: 0
- name: Tag and Release
uses: action-tag-and-release@main