2.1.5 #28
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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Publish | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Obtain SNK | |
id: obtain_snk | |
uses: timheuer/[email protected] | |
with: | |
fileName: 'SigningKey.snk' | |
encodedString: ${{ secrets.SNK_BASE64 }} | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.x | |
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155 | |
working-directory: ./source | |
run: dotnet clean -c Release && dotnet nuget locals all --clear | |
- name: Pack | |
working-directory: ./source | |
run: dotnet pack -c Release /p:version=${{ github.event.release.tag_name }} /p:ContinuousIntegrationBuild=true /p:AssemblyOriginatorKeyFile=${{ steps.obtain_snk.outputs.filePath }} /p:ShouldSignAssembly=true | |
- name: Publish to NuGet | |
working-directory: ./source | |
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_ORG_PUSH_KEY }} -s https://api.nuget.org/v3/index.json |