Merge pull request #11 from waisbrot/auto-tag

Automatically tag every commit to 'master'
This commit is contained in:
Fadi Hadzh 2020-09-11 17:04:14 +03:00 committed by GitHub
commit eeee35a89e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/auto-tag.yml vendored Normal file
View 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 }}