Skip to content

Bump up the .NET setup action version and try to fix restore #3

Bump up the .NET setup action version and try to fix restore

Bump up the .NET setup action version and try to fix restore #3

Workflow file for this run

name: Build and Upload .NET Project
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # Specify your .NET version here
- name: Restore dependencies
run: |
dotnet workload restore
dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish --configuration Release --output ./output
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: dotnet-artifacts-${{ matrix.os }}
path: ./output