From 9b8256839866d27b79b70f07b339b4e40d917003 Mon Sep 17 00:00:00 2001 From: Alex Grigorichev Date: Thu, 7 Sep 2023 11:57:16 +0500 Subject: [PATCH] Release.yml fixed --- .github/workflows/release.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ebd227..e0f8c4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,22 +27,8 @@ jobs: - name: test run: dotnet test - - name: publish - uses: rohith/publish-nuget@v2 - with: - PROJECT_FILE_PATH: src/ModelResult/Byndyusoft.ModelResult.csproj - VERSION_FILE_PATH: Directory.Build.props - VERSION_REGEX: ^\s*(.*)<\/Version>\s*$ - TAG_COMMIT: false - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - INCLUDE_SYMBOLS: true - - - name: publish - uses: rohith/publish-nuget@v2 - with: - PROJECT_FILE_PATH: src/ModelResult.AspNetCore/Byndyusoft.ModelResult.AspNetCore.csproj - VERSION_FILE_PATH: Directory.Build.props - VERSION_REGEX: ^\s*(.*)<\/Version>\s*$ - TAG_COMMIT: false - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - INCLUDE_SYMBOLS: true \ No newline at end of file + - name: Create package(s) + run: dotnet pack --configuration Release --no-build + + - name: Publish packages + run: dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json \ No newline at end of file