-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.36 KB
/
publish.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
name: publish
on: [ push ]
jobs:
publish-win-x64:
runs-on: windows-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- uses: actions/checkout@v2
- name: Publish win-x64
run: |
dotnet publish -c Release -r win-x64 Outseek.AvaloniaClient -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --no-self-contained
Move-Item -Path Outseek.AvaloniaClient/bin/Release/net6.0/win-x64/publish/Outseek.AvaloniaClient.exe -Destination Outseek.exe
- name: Upload win-x64
uses: actions/upload-artifact@v2
with:
name: outseek-win-x64
path: Outseek.exe
publish-linux-x64:
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- uses: actions/checkout@v2
- name: Publish linux-x64
run: |
dotnet publish -c Release -r linux-x64 Outseek.AvaloniaClient -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --no-self-contained
mv Outseek.AvaloniaClient/bin/Release/net6.0/linux-x64/publish/Outseek.AvaloniaClient Outseek
- name: Upload linux-x64
uses: actions/upload-artifact@v2
with:
name: outseek-linux-x64
path: Outseek