-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.5 KB
/
release.yml
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
52
53
54
55
name: Release new Version
on:
pull_request:
types: [closed]
jobs:
build:
name: Build
runs-on: windows-2022
if: github.event.pull_request.merged
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Application Version
id: version
uses: PaulHatch/[email protected]
with:
major_pattern: "[MAJOR]"
minor_pattern: "[MINOR]"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
with:
vs-version: "17.7"
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Build & Package
run: ./build.bat ".\SRS-Radio-Presets" ${{ steps.version.outputs.version_tag }}
- name: Setup VSTest
uses: Malcolmnixon/Setup-VSTest@v3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: VSTest DCS-SR-CommonTests
run: VSTest.Console DCS-SR-CommonTests\bin\x64\Release\DCS-SR-CommonTests.dll
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Create a GitHub release
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.version_tag }}
name: Release ${{ steps.version.outputs.version_tag }}
body: "Please update Release notes"
artifacts: "Vanguard-SRS-${{ steps.version.outputs.version_tag }}.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true