From ba88882ecbd7f33c5c3d3454da30b6d4dfcf918f Mon Sep 17 00:00:00 2001 From: Nathaniel Waisbrot Date: Wed, 12 Aug 2020 12:41:13 -0400 Subject: [PATCH] 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 --- .github/workflows/auto-tag.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/auto-tag.yml diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml new file mode 100644 index 0000000..8f45a8d --- /dev/null +++ b/.github/workflows/auto-tag.yml @@ -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 }} +