fix ci #5
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: | |
push: | |
tags: [v*] | |
jobs: | |
publish_packages: | |
runs-on: ubuntu-latest | |
env: | |
ContinuousIntegrationBuild: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
6.0.417 | |
7.0.404 | |
8.0.100 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore /p:version="${GITHUB_REF_NAME//v/}" | |
- name: NuGet Push | |
run: Get-Item pkgs/*.nupkg |% { dotnet nuget push $_ --source ${{ secrets.NUGET_SOURCE }} --api-key ${{ secrets.NUGET_APIKEY }} } | |
shell: pwsh |