Skip to content

Commit 5c37e68

Browse files
committed
Ändere den Veröffentlichungsprozess: Entferne die NuGet-Publish-Aktion und ersetze sie durch dotnet pack und dotnet nuget push
1 parent 60cba34 commit 5c37e68

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/Release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
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

0 commit comments

Comments
 (0)