-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 858 Bytes
/
release.yml
File metadata and controls
37 lines (31 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on:
push:
branches: [ master ]
paths:
- 'src/**'
- '.github/workflows/release.yml'
jobs:
release:
runs-on: ubuntu-latest
## TODO get versionspec from CSPROJ file for synchronized version
steps:
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.11
with:
versionSpec: '5.3.x'
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.11
- name: create release
id: create_release
uses: release-drafter/release-drafter@v5
with:
tag: '${{ steps.gitversion.outputs.semVer }}'
name: 'Release ${{ steps.gitversion.outputs.semVer }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}