-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8283c2
commit c2d155e
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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\MINT.nupkg -ApiKey ${{ secrets.NUGET_TOKEN }} -Source https://api.nuget.org/v3/index.json |