Fix NuGet package path in GitHub Actions workflow #8
Workflow file for this run
This file contains hidden or 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 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 |