-
-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (36 loc) · 1.24 KB
/
dotnet-desktop.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: .NET 6.0 Desktop Build and Publish
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore --runtime win-x64
- name: Build the solution
run: dotnet build --configuration Release --no-restore
- name: Publish the application
run: dotnet publish D:\a\ATA-GUI\ATA-GUI\ATA-GUI\ATA-GUI.csproj --configuration Release --runtime win-x64 --self-contained false /p:PublishSingleFile=true --output ./publish
- name: Zip the published output
run: Compress-Archive -Path ./publish/ATA-GUI.exe, ./LICENSE -DestinationPath ATA-GUI.zip
shell: pwsh
- name: Get Previous tag
id: previoustag
uses: "WyriHaximus/[email protected]"
- name: Create Release
uses: ncipollo/[email protected]
with:
generateReleaseNotes: true
artifacts: ATA-GUI.zip
name: ${{ steps.previoustag.outputs.tag }}
tag: ${{ steps.previoustag.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}