Skip to content

Commit 936adb0

Browse files
committed
Additional cleanup
1 parent d434dea commit 936adb0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,27 +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-
159-
# Push Packages to our DevOps Artifacts Feed
160-
- name: Add source
161-
if: ${{ github.ref == 'refs/heads/main' }}
162-
run: dotnet nuget update source LabsFeed --username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }}
163158

164159
# Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
165-
- name: Push Pull Request Packages (if not fork)
160+
- name: Push PR packages (if not fork)
166161
if: ${{ env.IS_PR == 'true' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
167162
run: |
168163
dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json `
169164
--name PullRequests `
170165
--username dummy --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }}
171166
dotnet nuget push "**/*.nupkg" --api-key dummy --source PullRequests --skip-duplicate
172167
173-
- name: Push packages
168+
- name: Push packages (main)
174169
if: ${{ github.ref == 'refs/heads/main' }}
175-
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
176173
177174
# Run tests
178175
- name: Setup VSTest Path

0 commit comments

Comments
 (0)