-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (47 loc) · 1.55 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
name: Build and Release
on:
release:
types: [created]
jobs:
build-release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release -o build -r win-x64 --no-restore --no-self-contained /p:PublishSingleFile=true
- name: Move exe
run: cd build && mv WhereIsForward.exe ../WhereIsForward.exe
- name: Upload binaries
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'WhereIsForward.exe'
build-release-self-contained:
name: Build and Release (Self-Contained)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release -o build -r win-x64 --no-restore --self-contained /p:PublishSingleFile=true
- name: Rename and move exe
run: cd build && mv WhereIsForward.exe ../WhereIsForward.SelfContained.exe
- name: Upload binaries
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'WhereIsForward.SelfContained.exe'