Skip to content

Commit 5a1c9db

Browse files
committed
Merge publish-release and publish-prerelease jobs
1 parent b38a376 commit 5a1c9db

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,14 @@ jobs:
3333
with:
3434
name: nuget-package-${{ matrix.os }}
3535
path: ${{ steps.dotnet-pack.outputs.nupkg-filename }}
36-
publish-release:
36+
publish:
3737
runs-on: macos-latest
3838
needs: package
39-
if: startsWith(github.ref, 'refs/tags')
39+
if: github.ref == 'refs/heads/prerelease' || startsWith(github.ref, 'refs/tags')
4040
name: Publish package on nuget.org
41-
steps:
42-
- uses: actions/download-artifact@v2
43-
with:
44-
name: nuget-package-macos-latest
45-
- run: dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
46-
publish-prerelease:
47-
runs-on: macos-latest
48-
needs: package
49-
if: github.ref == 'refs/heads/deploy'
50-
name: Publish package on github.com
5141
steps:
5242
- name: Create tag
43+
if: github.ref == 'refs/heads/prerelease'
5344
uses: tvdias/[email protected]
5445
with:
5546
repo-token: ${{ github.token }}

0 commit comments

Comments
 (0)