Skip to content

Move to dotnet and github actions #2

Move to dotnet and github actions

Move to dotnet and github actions #2

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Pack
run: dotnet pack --no-build -p:PackageVersion=0.3.${{ github.run_number }}
- name: Push
run: dotnet nuget push .\Baseclass.SharedResource\bin\Release\*.nupkg -k ${{ secrets.NUGET_TOKEN }}