Rename NuGet configuration files. #13
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: Publish | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
POWERSHELL_TELEMETRY_OPTOUT: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: microsoft/setup-msbuild@v2 | |
- name: Clear local NuGet cache (workaround for failed restores on windows-latest) | |
run: dotnet nuget locals all --clear | |
- name: Build | |
run: msbuild BuildAllTargets.proj | |
- name: Publish to NuGet | |
if: contains(github.ref, 'tags/') | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: cmd | |
run: | | |
:: 把生成的nuget包发布到nuget中 | |
nuget push Output\Chuyu.Mint.nupkg -ApiKey ${{ secrets.NUGET_TOKEN }} -Source https://api.nuget.org/v3/index.json |