-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.04 KB
/
build.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
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet publish --bl
- name: Upload Binary Log
uses: actions/upload-artifact@v3
with:
name: Binary Log
path: ./msbuild.binlog
if-no-files-found: error
- name: Rename App
shell: pwsh
run: |
$outputPath = & dotnet publish './src/ChatPrisma' --getProperty:PublishDir
cd $outputPath
ren "ChatPrisma.exe" "Chat Prisma.exe"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: App
path: ./artifacts/publish/ChatPrisma/release_win-x64/
if-no-files-found: error