build: v1.0.2 #18
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: nuget | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
nuget: | |
name: Publish NuGet package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "7.0.x" | |
- run: dotnet build ./src/Parsec --configuration Release | |
- name: Create NuGet package | |
run: dotnet pack ./src/Parsec --configuration Release | |
- name: Publish NuGet package | |
run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key ${{secrets.NUGET_AUTH_TOKEN}} --source https://api.nuget.org/v3/index.json |