Skip to content

When publishing an application, restoring must have specified the pla… #56

When publishing an application, restoring must have specified the pla…

When publishing an application, restoring must have specified the pla… #56

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
env:
ProjectName: RaspberryPiDotnetRepository
TargetPlatform: win-x64
runs-on: windows-latest
steps:
- name: Unfuck Git
run: git config set --global core.autocrlf false
- name: Clone
uses: actions/checkout@v6
- name: Restore
run: dotnet restore ${{ env.ProjectName }} --locked-mode --runtime ${{ env.TargetPlatform }}
- 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@v7
with:
name: ${{ env.ProjectName }}.exe
path: ${{ env.ProjectName }}/bin/Release/net10.0/${{ env.TargetPlatform }}/publish/*.exe
if-no-files-found: error