-
Notifications
You must be signed in to change notification settings - Fork 92
46 lines (36 loc) · 1.18 KB
/
dotnet-build.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
name: Beta releases
on:
push:
branches: [master, TownOfUs]
pull_request:
branches: [master, TownOfUs]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Get Previous tag"
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@master"
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 5.0.100
- name: Install dependencies
run: dotnet restore "AUCapture-WPF\AUCapture-WPF.csproj"
- name: Publish
run: |
dotnet publish "AUCapture-WPF\AUCapture-WPF.csproj" -p:PublishProfile=DevProfile -p:AssemblyVersion=${{ steps.previoustag.outputs.tag }}.1
- name: Relocate
run: |
mv AUCapture-WPF\\bin\\Release\\netcoreapp3.1\\publish\\AUCapture-WPF.exe ..\AmongUsCapture-Beta.exe
- name: Zip
run: |
7z a AmongUsCapture-Beta.zip ..\AmongUsCapture-Beta.exe -mx=9
- name: AmongUsCapture-beta
uses: actions/upload-artifact@v2
with:
name: AmongUsCapture-beta
path: AmongUsCapture-Beta.zip