Skip to content

Commit 392bfa0

Browse files
Update release.yml
1 parent cee0d3e commit 392bfa0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717
working-directory: .
1818

1919
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v3
22-
with:
23-
fetch-depth: 0
24-
2520
- name: Download NuGet Packages from Release
2621
run: |
2722
Write-Host "GITHUB_REF: '$($env:GITHUB_REF)'"
@@ -34,7 +29,9 @@ jobs:
3429

3530
- name: Publish to github packages
3631
run: |
37-
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://api.nuget.org/v3/index.json"
32+
dotnet nuget add source --username ${{ secrets.USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/SIEMENS/index.json"
33+
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source github
3834
env:
35+
USERNAME: ${{ secrets.USERNAME }}
3936
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4037

0 commit comments

Comments
 (0)