-
-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (45 loc) · 1.37 KB
/
release_touchy.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: release-touchy
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch to release from'
requred: true
default: 'main'
version:
description: 'The version to push'
required: true
default: 'X.X.X'
is_pre:
description: 'Is pre release'
type: boolean
notes:
description: 'A description for this release, will be displayed in the Releases section'
required: true
jobs:
build:
runs-on: windows-latest
steps:
- name: Git Checkout
uses: actions/checkout@master
with:
ref: ${{ github.event.inputs.branch }}
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
- name: Publish VL Nuget
uses: vvvv/PublishVLNuget@1.0.41
with:
csproj: VL.Touchy/src/VL.Touchy.sln
nuspec: VL.Touchy/deployment/VL.Touchy.nuspec
version: ${{ github.event.inputs.version }}
nuget-key: ${{ secrets.TOUCHY_KEY }}
- name: Create tag and release
uses: avakar/tag-and-release@v1.0.0
with:
tag_name: ${{ format('Touchy_{0}', github.event.inputs.version) }}
prerelease: ${{ github.event.inputs.is_pre }}
body: ${{ github.event.inputs.notes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}