Skip to content

Commit 8944cf5

Browse files
committed
Hotfix - Fix pre-release nuget push
1 parent c7797e9 commit 8944cf5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/rc-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ jobs:
130130
name: rc-build
131131
path: ./build_artifacts
132132

133+
- name: Setup NuGet source
134+
run: |
135+
dotnet nuget add source \
136+
--username ${{ secrets.ORG_PACKAGE_USERNAME }} \
137+
--password ${{ secrets.ORG_PACKAGE_TOKEN }} \
138+
--store-password-in-clear-text \
139+
--name github "${{ env.NUGET_SOURCE }}"
140+
133141
- name: Pack and push RC NuGet package
134142
run: |
135143
dotnet restore ${{ env.API_PROJECT }}
@@ -139,10 +147,6 @@ jobs:
139147
/p:PackageVersion=${{ needs.build.outputs.hash_version }} \
140148
/p:Version=${{ needs.build.outputs.new_version }} \
141149
/p:InformationalVersion=${{ needs.build.outputs.hash_version }}
142-
dotnet nuget add source --username "${{ github.actor }}" \
143-
--password "${{ secrets.GITHUB_TOKEN }}" \
144-
--store-password-in-clear-text \
145-
--name github "${{ env.NUGET_SOURCE }}"
146150
dotnet nuget push ./nupkg/*.nupkg \
147151
--source github \
148152
--api-key "${{ secrets.GITHUB_TOKEN }}" \

0 commit comments

Comments
 (0)