Skip to content

Commit eeee35a

Browse files
author
Fadi Hadzh
authored
Merge pull request #11 from waisbrot/auto-tag
Automatically tag every commit to 'master'
2 parents 79fb5df + ba88882 commit eeee35a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/auto-tag.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- id: compute_tag
13+
uses: craig-day/compute-tag@v10
14+
with:
15+
github_token: ${{ github.token }}
16+
version_scheme: continuous
17+
version_type: major
18+
19+
- name: create release
20+
uses: actions/create-release@v1
21+
with:
22+
tag_name: ${{ steps.compute_tag.outputs.next_tag }}
23+
release_name: ${{ steps.compute_tag.outputs.next_tag }}
24+
body: >
25+
Automatic release of ${{ steps.compute_tag.outputs.next_tag }}
26+
env:
27+
GITHUB_TOKEN: ${{ github.token }}
28+

0 commit comments

Comments
 (0)