-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (48 loc) · 1.55 KB
/
build.yml
File metadata and controls
61 lines (48 loc) · 1.55 KB
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
56
57
58
59
60
61
name: Build Extension
on:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: VirtualDesktopTimecodeServer.sln
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Get Application Version
id: get_version
uses: battila7/get-version-action@v2
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Create the app package
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration
env:
Appx_Bundle: Always
Appx_Bundle_Platforms: x64
Appx_Package_Build_Mode: StoreUpload
Configuration: ${{ matrix.configuration }}
- name: Upload Artifact 1
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./bin/Release/net471/VirtualDesktopTimecodeServer.dll
asset_name: VirtualDesktopTimecodeServer_${{ steps.get_version.outputs.version }}.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload Artifact 2
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./Assets/inject.bat
asset_name: inject_${{ steps.get_version.outputs.version }}.bat
tag: ${{ github.ref }}
overwrite: true