-
-
Notifications
You must be signed in to change notification settings - Fork 139
56 lines (45 loc) · 1.18 KB
/
ci-installer.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
name: CI-Installer
on:
push:
branches:
- master
- release/*
tags:
- installer-*
pull_request:
branches:
- master
- release/*
env:
PUBLISH_PATH: './Installer/bin/Release/net8.0/win-x64/publish/'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build -c Release ./Installer/Installer.csproj
- name: Publish
run: dotnet publish -c Release ./Installer/Installer.csproj
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Installer.exe
path: ${{ env.PUBLISH_PATH }}Installer.exe
- name: Zip
if: startsWith(github.ref, 'refs/tags/')
run: Compress-Archive -Path ${{ env.PUBLISH_PATH }}Installer.exe -Destination ./Installer.zip
shell: powershell
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Installer.zip
make_latest: true