Skip to content

Commit 100d404

Browse files
authored
Merge pull request #503 from CommunityToolkit/fix/push-from-main
Fixed missing nuget source config
2 parents 9929509 + 936adb0 commit 100d404

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,24 @@ jobs:
152152
run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release
153153

154154
# Build All Packages
155-
- name: pack experiments
155+
- name: Pack experiments
156156
working-directory: ./tooling/Scripts/
157157
run: ./PackEachExperiment.ps1 -date ${{ env.VERSION_DATE }}${{ env.VERSION_PROPERTY != '' && format(' -postfix {0}', env.VERSION_PROPERTY) || '' }}
158-
158+
159159
# Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
160-
- name: Push Pull Request Packages (if not fork)
160+
- name: Push PR packages (if not fork)
161161
if: ${{ env.IS_PR == 'true' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
162162
run: |
163163
dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json `
164164
--name PullRequests `
165165
--username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }}
166166
dotnet nuget push "**/*.nupkg" --api-key dummy --source PullRequests --skip-duplicate
167167
168-
- name: Push packages
168+
- name: Push packages (main)
169169
if: ${{ github.ref == 'refs/heads/main' }}
170-
run: dotnet nuget push "**/*.nupkg" --api-key dummy --source LabsFeed --skip-duplicate
170+
run: |
171+
dotnet nuget update source LabsFeed --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} `
172+
dotnet nuget push "**/*.nupkg" --api-key dummy --source LabsFeed --skip-duplicate
171173
172174
# Run tests
173175
- name: Setup VSTest Path

0 commit comments

Comments
 (0)