Initial version with .net 8 support. #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Nuget | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
packages: write # permission for the github token | |
jobs: | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build JetdriveSharp/JetdriveSharp.csproj --no-restore --configuration Release | |
- name: Create the package | |
run: dotnet pack JetdriveSharp/JetdriveSharp.csproj --configuration Release | |
- name: Publish the package to Nuget | |
run: dotnet nuget push JetdriveSharp\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}} |