v8.0.0.5 #25
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 NuGets" | |
on: | |
release: | |
types: [published] | |
# push: | |
# tags: | |
# - "v*.*.*.*" | |
workflow_dispatch: | |
jobs: | |
publish_nugets: | |
name: "Publish NuGets" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "Setup .NET CLI" | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "8.x" | |
- name: "Restore Solution NuGets" | |
run: dotnet restore | |
- name: "Build Solution" | |
run: dotnet build | |
--no-restore | |
--configuration "Release" | |
- name: "Pack NuGets" | |
run: dotnet pack | |
--no-restore --no-build | |
--configuration "Release" | |
--property:PackageOutputPath="../../nupkgs" | |
- name: "Upload NuGets to Artifacts" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "nupkgs" | |
path: "nupkgs" | |
- name: "Upload NuGets to nuget.org" | |
run: dotnet nuget push "nupkgs/**/*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json --skip-duplicate |