Skip to content

Commit

Permalink
Update release_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adomorn committed Dec 17, 2023
1 parent bc2aa0e commit c798f10
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build
run: dotnet test --no-build --configuration Release

- name: Pack
run: |
VERSION_TAG=${GITHUB_REF#refs/tags/v}
dotnet pack --no-build --configuration Release /p:PackageVersion=$VERSION_TAG
dotnet pack --no-build --configuration Release /p:PackageVersion=$VERSION_TAG # Pack in Release configuration
env:
GITHUB_REF: ${{ github.ref }}

- name: Publish Package
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}

0 comments on commit c798f10

Please sign in to comment.