File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1919 run : dotnet restore
2020 - name : Build
2121 run : dotnet build --configuration Release --no-restore
22- - name : Publish to NuGet
23- uses : brandedoutcast/publish-nuget@v2
24- with :
25- PROJECT_FILE_PATH : MbSoftLab.TemplateEngine.Core/MbSoftLab.TemplateEngine.Core.csproj
26- PACKAGE_NAME : Core
27- VERSION_REGEX : ' ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$'
28- TAG_FORMAT : ' v*'
29- NUGET_KEY : ${{secrets.NUGET_API_KEY}}
22+ - name : Pack
23+ run : dotnet pack MbSoftLab.TemplateEngine.Core/MbSoftLab.TemplateEngine.Core.csproj --configuration Release --no-restore -o ./artifacts
24+ - name : Push to NuGet
25+ run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments