-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.73 KB
/
dotnet.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
56
57
58
59
name: nightly-release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@master
with:
submodules: recursive
- name: Create builddate file
run: echo %date% %time:~0,-3%>"Client\Resources\BuildDate.txt"
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Compile package Win-x64
run: dotnet publish Client\Client.csproj -r win-x64 -c Release -p:PublishSingleFile=true -p:UseAppHost=true --self-contained true -p:SolutionDir=".." -o="./publish/win64/"
- name: Zip package Win-x64
uses: thedoctor0/zip-release@main
with:
type: 'zip'
path: 'publish/win64/'
exclusions: '*.pdb'
filename: 'win-x64.zip'
- name: Compile package Linux-x64
run: dotnet publish Client\Client.csproj -r linux-x64 -c Release -p:PublishSingleFile=true -p:UseAppHost=true --self-contained true -p:SolutionDir=".." -o="./publish/linux64/"
- name: Zip package Linux-x64
uses: thedoctor0/zip-release@main
with:
type: 'tar'
path: 'publish/linux64/'
exclusions: '*.pdb'
filename: 'linux-x64.tar.gz'
- name: Upload
uses: "marvinpinto/action-automatic-releases@latest"
with:
automatic_release_tag: "nightly-release"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
win-x64.zip
linux-x64.tar.gz