Skip to content

Commit cdc2cce

Browse files
committed
swap
1 parent 3e4e35a commit cdc2cce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/dotnet.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,11 @@ jobs:
274274
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
275275
shell: pwsh
276276
run: |
277-
# TODO: Update README.md on how to consume this package; make public in GitHub settings at organization level
277+
# TODO: Update README.md on how to consume packages; make public in GitHub settings at organization level
278278
dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json'
279279
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
280-
- name: Publish to NuGet
281-
# TODO: Test this
282-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
283-
env:
284-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
285-
shell: pwsh
286-
run: |
287-
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:NUGET_API_KEY" --source 'nuget.org'
288280
- name: Publish documentation
289-
# TODO: Should also publish on release tag, but only from master
281+
# TODO: Should also publish on release tag, but only from master - @($(git branch --remotes --contains v5.0.0 | select-object -first 1) -split '/')[1]
290282
#if: github.event_name == 'push' && github.ref == 'refs/heads/master'
291283
uses: peaceiris/actions-gh-pages@v3
292284
with:
@@ -297,3 +289,11 @@ jobs:
297289
#user_name: 'github-actions-bot'
298290
#user_email: 'github-actions-bot@users.noreply.github.com'
299291
#commit_message: 'Automated commit from cibuild'
292+
- name: Publish to NuGet
293+
# TODO: Test this
294+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
295+
env:
296+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
297+
shell: pwsh
298+
run: |
299+
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:NUGET_API_KEY" --source 'nuget.org'

0 commit comments

Comments
 (0)