Skip to content

Fix NuGet package path in GitHub Actions workflow #4

Fix NuGet package path in GitHub Actions workflow

Fix NuGet package path in GitHub Actions workflow #4

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore JetDatabaseReader/JetDatabaseReader.csproj
- name: Build
run: dotnet build JetDatabaseReader/JetDatabaseReader.csproj -c Release --no-restore
- name: Create NuGet package
run: dotnet pack JetDatabaseReader/JetDatabaseReader.csproj -c Release --no-build -o ./nupkg
- name: List files (debug)
run: |
echo "Contents of nupkg folder:"
dir nupkg
- name: Push to NuGet.org
run: dotnet nuget push JetDatabaseReader/nupkg/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate