Automatically tag every commit to 'master'
Use Github workflow to tag every commit to master. Tags follow the format v1, v2, v3, etc. fixes #3
This commit is contained in:
parent
14b3e118cf
commit
ba88882ecb
28
.github/workflows/auto-tag.yml
vendored
Normal file
28
.github/workflows/auto-tag.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: compute_tag
|
||||
uses: craig-day/compute-tag@v10
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
version_scheme: continuous
|
||||
version_type: major
|
||||
|
||||
- name: create release
|
||||
uses: actions/create-release@v1
|
||||
with:
|
||||
tag_name: ${{ steps.compute_tag.outputs.next_tag }}
|
||||
release_name: ${{ steps.compute_tag.outputs.next_tag }}
|
||||
body: >
|
||||
Automatic release of ${{ steps.compute_tag.outputs.next_tag }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
Loading…
Reference in a new issue