File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,30 @@ jobs:
66
66
name : packages
67
67
path : ' ${{env.BUILD_PATH}}'
68
68
69
+ deploy :
70
+ runs-on : ubuntu-latest
71
+ needs : build
72
+ if : success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/v'))
73
+
74
+ steps :
75
+ - name : Download Artifact
76
+ uses : actions/download-artifact@v3
77
+ with :
78
+ name : packages
79
+
80
+ - name : Publish Packages GitHub
81
+ run : |
82
+ for package in $(find -name "*.nupkg"); do
83
+ echo "${0##*/}": Pushing $package...
84
+ dotnet nuget push $package --source https://nuget.pkg.github.com/serilog-contrib/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
85
+ done
86
+
69
87
- name : Publish Packages Nuget
70
- if : success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/v') )
88
+ if : startsWith(github.ref, 'refs/tags/v')
71
89
run : |
72
90
for package in $(find -name "*.nupkg"); do
73
91
echo "${0##*/}": Pushing $package...
74
92
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
75
93
done
76
94
95
+
You can’t perform that action at this time.
0 commit comments