Fix NuGet package path in GitHub Actions workflow #4
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*' | |
| 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 | |