Skip to content

Commit

Permalink
Merge pull request #11 from waisbrot/auto-tag
Browse files Browse the repository at this point in the history
Automatically tag every commit to 'master'
  • Loading branch information
Fadi Hadzh authored Sep 11, 2020
2 parents 79fb5df + ba88882 commit eeee35a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit eeee35a

Please sign in to comment.