classic loop adjust revert #23
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: Build and Publish NuGet Package | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Restore NuGet Packages | |
run: nuget restore src\UnlockerIsland\UnlockerIsland.sln | |
- name: Build | |
run: msbuild src\UnlockerIsland\UnlockerIsland.sln /p:Configuration=Release | |
- name: Pack | |
run: nuget pack src\UnlockerIsland\Snap.Hutao.UnlockerIsland\Snap.Hutao.UnlockerIsland.nuspec | |
- name: Publish to NuGet | |
run: nuget push *.nupkg ${{ secrets.NUGET_API_KEY }} -src https://api.nuget.org/v3/index.json |