Skip to content

Fix NuGet package path in GitHub Actions workflow #8

Fix NuGet package path in GitHub Actions workflow

Fix NuGet package path in GitHub Actions workflow #8

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags:
- 'v*'
defaults:
run:
working-directory: JetDatabaseReader
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.csproj
- name: Build
run: dotnet build JetDatabaseReader.csproj -c Release --no-restore
- name: Create NuGet package
run: dotnet pack JetDatabaseReader.csproj -c Release --no-build -o ../nupkg
- name: List files (debug)
run: dir ../nupkg
- name: Push to NuGet.org
run: dotnet nuget push ../nupkg/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate