This repository was archived by the owner on Dec 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,18 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14+ - name : Dump GitHub context
15+ env :
16+ GITHUB_CONTEXT : ${{ toJson(github) }}
17+ run : echo "$GITHUB_CONTEXT"
18+
1419 - uses : nuget/setup-nuget@v1
1520 with :
1621 nuget-version : ' 5.x'
1722
1823 - name : Download artifact
1924 uses : dawidd6/action-download-artifact@v2
25+ if : github.event.workflow_run.conclusion == 'success'
2026 with :
2127 github_token : ${{ secrets.GITHUB_TOKEN }}
2228 workflow : ci.yml
@@ -29,12 +35,13 @@ jobs:
2935
3036 - name : nuget.org
3137 # continue-on-error: true
32- if : startsWith (github.ref, 'refs/tags/ v')
38+ if : (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && startsWith(github.event.workflow_run.head_branch, ' v') # this is the best approximation for a tag
3339 env :
3440 ApiKey : ${{ secrets.RSG_NUGET_API_KEY }}
3541 shell : pwsh
3642 run : |
37- dotnet nuget push **/*.nupkg --skip-duplicate --api-key $ENV:ApiKey --source nuget.org
43+ dotnet nuget push **/*.nupkg --skip-duplicate --api-key $ENV:ApiKey
44+ dotnet nuget push **/*.snupkg --skip-duplicate --api-key $ENV:ApiKey
3845
3946 - name : dev.azure.com
4047 # continue-on-error: true
Original file line number Diff line number Diff line change 99<!-- badges -->
1010
1111<!-- history badges -->
12- | Azure Pipelines | GitHub Actions |
13- | --------------- | -------------- |
14- | [ ![ azurepipelines-badge ]] [ azurepipelines ] | [ ![ github-badge]] [ github ] |
15- | [ ![ azurepipelines-history-badge ]] [ azurepipelines-history ] | [ ![ github-history-badge]] [ github ] |
12+ | GitHub Actions |
13+ | -------------- |
14+ | [ ![ github-badge]] [ github ] |
15+ | [ ![ github-history-badge]] [ github ] |
1616<!-- history badges -->
1717
1818<!-- nuget packages -->
3333[ github-license-badge ] : https://img.shields.io/github/license/RocketSurgeonsGuild/AspNetCore.Extensions.svg?style=flat " License "
3434[ codecov ] : https://codecov.io/gh/RocketSurgeonsGuild/AspNetCore.Extensions
3535[ codecov-badge ] : https://img.shields.io/codecov/c/github/RocketSurgeonsGuild/AspNetCore.Extensions.svg?color=E03997&label=codecov&logo=codecov&logoColor=E03997&style=flat " Code Coverage "
36- [ azurepipelines ] : https://dev.azure.com/rocketsurgeonsguild/Libraries/_build/latest?definitionId=34&branchName=master
37- [ azurepipelines-badge ] : https://img.shields.io/azure-devops/build/rocketsurgeonsguild/Libraries/34.svg?color=98C6FF&label=azure%20pipelines&logo=azuredevops&logoColor=98C6FF&style=flat " Azure Pipelines Status "
38- [ azurepipelines-history ] : https://dev.azure.com/rocketsurgeonsguild/Libraries/_build?definitionId=34&branchName=master
39- [ azurepipelines-history-badge ] : https://buildstats.info/azurepipelines/chart/rocketsurgeonsguild/Libraries/34?includeBuildsFromPullRequest=false " Azure Pipelines History "
4036[ github ] : https://github.com/RocketSurgeonsGuild/AspNetCore.Extensions/actions?query=workflow%3Aci
4137[ github-badge ] : https://img.shields.io/github/workflow/status/RocketSurgeonsGuild/AspNetCore.Extensions/ci.svg?label=github&logo=github&color=b845fc&logoColor=b845fc&style=flat " GitHub Actions Status "
4238[ github-history-badge ] : https://buildstats.info/github/chart/RocketSurgeonsGuild/AspNetCore.Extensions?includeBuildsFromPullRequest=false " GitHub Actions History "
5248github:
5349 owner: RocketSurgeonsGuild
5450 repository: AspNetCore.Extensions
55- azurepipelines:
56- account: rocketsurgeonsguild
57- teamproject: Libraries
58- builddefinition: 34
5951-->
You can’t perform that action at this time.
0 commit comments