Skip to content

Commit

Permalink
Fix release github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Feb 27, 2024
1 parent 0ada582 commit c2c50a1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup GitHub NuGet feed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget update source "ReportPortal GitHub" --username reportportal --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text

- name: Pack
run: dotnet pack -c Release --property:PackageOutputPath=../../pkgs

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -40,12 +47,12 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags')
environment:
name: NuGet Gallery
url: https://www.nuget.org/packages/ReportPortal.Client
url: https://www.nuget.org/packages/ReportPortal.NUnit
runs-on: ubuntu-latest
needs: Build

steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Push
run: dotnet nuget push **/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.NUGET_API_KEY}}
run: dotnet nuget push **/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_API_KEY }}

0 comments on commit c2c50a1

Please sign in to comment.