-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 1.05 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
name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
env:
ProjectName: AuthenticatorChooser
runs-on: windows-latest
strategy:
matrix:
include:
- targetPlatform: win-x64
- targetPlatform: win-arm64
steps:
- name: Clone
uses: actions/checkout@v4
- name: Restore
run: dotnet restore --locked-mode --verbosity normal
- name: Build
run: dotnet build ${{ env.ProjectName }} --no-restore --runtime ${{ matrix.targetPlatform }} --configuration Release --no-self-contained
- name: Publish
run: dotnet publish ${{ env.ProjectName }} --no-build --runtime ${{ matrix.targetPlatform }} --configuration Release --no-self-contained -p:PublishSingleFile=true
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.ProjectName }}-${{ matrix.targetPlatform }}
path: ${{ env.ProjectName }}/bin/Release/net8.0-windows/${{ matrix.targetPlatform }}/publish/*.exe
if-no-files-found: error