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:
33
33
with :
34
34
name : nuget-package-${{ matrix.os }}
35
35
path : ${{ steps.dotnet-pack.outputs.nupkg-filename }}
36
- publish-release :
36
+ publish :
37
37
runs-on : macos-latest
38
38
needs : package
39
- if : startsWith(github.ref, 'refs/tags')
39
+ if : github.ref == 'refs/heads/prerelease' || startsWith(github.ref, 'refs/tags')
40
40
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
51
41
steps :
52
42
- name : Create tag
43
+ if : github.ref == 'refs/heads/prerelease'
53
44
54
45
with :
55
46
repo-token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments