Merge pull request #55 from shichuyibushishiwu/develop #106
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: tuna | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
nuget: | |
strategy: | |
matrix: | |
version: [Rvt_16_Release, Rvt_17_Release, Rvt_18_Release, Rvt_19_Release, Rvt_20_Release, Rvt_21_Release, Rvt_22_Release, Rvt_23_Release, Rvt_24_Release, Rvt_25_Release] | |
name: release nuget | |
runs-on: windows-latest | |
steps: | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: 8.0.x | |
- name: checkout | |
uses: actions/checkout@v4.0.0 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration ${{ matrix.version }} | |
- name: Publish NuGet | |
run: dotnet nuget push src\bin\${{ matrix.version }}\*.nupkg -k ${{secrets.NUGETKEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate | |