-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 962 Bytes
/
dotnet.yml
File metadata and controls
34 lines (26 loc) · 962 Bytes
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
name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
env:
ProjectName: RaspberryPiDotnetRepository
TargetPlatform: win-x64
runs-on: windows-latest
steps:
- name: Clone
uses: actions/checkout@v6
- name: Restore
run: dotnet restore ${{ env.ProjectName }} --locked-mode
- name: Build
run: dotnet build ${{ env.ProjectName }} --no-restore --runtime ${{ env.TargetPlatform }} --configuration Release --no-self-contained
- name: Publish
run: dotnet publish ${{ env.ProjectName }} --no-build --configuration Release -p:PublishSingleFile=true --runtime ${{ env.TargetPlatform }} --self-contained false
- name: Upload build artifacts
uses: actions/upload-artifact@v6
with:
name: ${{ env.ProjectName }}.exe
path: ${{ env.ProjectName }}/bin/Release/net10.0/${{ env.TargetPlatform }}/publish/*.exe
if-no-files-found: error