Release 1.0.0 #16
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: Release to NuGet | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-publish: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 🛠️ Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: 🚧 Build | |
run: dotnet build --configuration Release | |
- name: 📦 Pack NuGet Tool | |
run: dotnet pack -c Release /p:PackageType=DotnetTool --output . | |
- name: 🌐 Publish NuGet Tool | |
run: dotnet nuget push "QuickDiff.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |