Skip to content

Commit 02eee69

Browse files
committed
Update nuget-push-to-esdm-nexus.yml
1 parent 657bb5e commit 02eee69

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/nuget-push-to-esdm-nexus.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ jobs:
1414
with:
1515
dotnet-version: 8.0.x
1616
- name: Setup NuGet
17-
run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text
17+
run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} \
18+
--store-password-in-clear-text --name esdm-nexus
1819
- name: Restore dependencies
1920
run: dotnet restore
2021
- name: Build
2122
run: dotnet build -c Release
2223
- name: Create NuGet package
2324
run: dotnet pack -c Release
25+
- name: Auth to other Nexus repo
26+
run: dotnet nuget add source ${{ secrets.ESDM_NUGET_HOSTED_URL }} -u ${{ secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} \
27+
--store-password-in-clear-text --name esdm-nexus-target
2428
- name: Find and Push NuGet packages
2529
run: |
2630
PACKAGES=$(find . -name "*.nupkg" | grep -E "cloudscribe|sts\.Common")
@@ -31,5 +35,5 @@ jobs:
3135
echo "Found packages: $PACKAGES"
3236
for PACKAGE in $PACKAGES; do
3337
echo "Pushing $PACKAGE"
34-
dotnet nuget push "$PACKAGE" --source ${{ secrets.ESDM_NUGET_HOSTED_URL }} --skip-duplicate
38+
dotnet nuget push "$PACKAGE" --source esdm-nexus-target --skip-duplicate
3539
done

0 commit comments

Comments
 (0)