File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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'
53445445 with :
5546 repo-token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments