Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Change to Project Directory
run: cd PiShockApi
- name: Build
run: dotnet build --configuration Release
- name: Publish
run: dotnet publish --configuration Release --output ./publish
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: published-app
path: ./publish