Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 252bfb1

Browse files
committed
add tagging workflow
1 parent 9d489c2 commit 252bfb1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/tag.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tag creation
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Get the version
14+
id: version
15+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
16+
shell: bash
17+
18+
- uses: apexskier/github-semver-parse@v1
19+
id: semver
20+
with:
21+
version: ${{ steps.version.outputs.VERSION }}
22+
23+
- name: Release
24+
if: ${{ steps.semver.outputs.version }}
25+
uses: actions/create-release@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
28+
with:
29+
tag_name: ${{ steps.version.outputs.VERSION }}
30+
release_name: ${{ steps.version.outputs.VERSION }}
31+
prerelease: ${{ !!steps.semver.outputs.prerelease }}

0 commit comments

Comments
 (0)