Skip to content

Commit

Permalink
Fixed release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Grigorichev committed Sep 7, 2023
1 parent 9b82568 commit 68bdc85
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,22 @@ jobs:
- name: test
run: dotnet test

- 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
- name: publish ModelResult
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/ModelResult/Byndyusoft.ModelResult.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true

- name: publish ModelResult.AspNetCore
uses: alirezanet/publish-nuget@v3.0.0
with:
PROJECT_FILE_PATH: src/ModelResult.AspNetCore/Byndyusoft.ModelResult.AspNetCore.csproj
VERSION_FILE_PATH: Directory.Build.props
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true

0 comments on commit 68bdc85

Please sign in to comment.