Skip to content

Commit bef6d6c

Browse files
committed
fix
1 parent 7fc4503 commit bef6d6c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ jobs:
4444
dotnet pack src/TonapiClient/TonapiClient.csproj --no-build --configuration Release --output ./artifacts
4545
4646
- name: Add GitHub Packages source
47-
run: dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
48-
--name "github" \
49-
--username "${{ github.repository_owner }}" \
50-
--password "${{ secrets.PAT_TOKEN }}" \
51-
--store-password-in-clear-text
47+
run: |
48+
dotnet nuget remove source github || true
49+
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --name github --username "${{ github.repository_owner }}" --password "${{ secrets.PAT_TOKEN }}" --store-password-in-clear-text
50+
5251
5352
- name: Publish to GitHub Packages
5453
run: dotnet nuget push ./artifacts/*.nupkg --source "github" --skip-duplicate

0 commit comments

Comments
 (0)