Skip to content

Commit 82644a8

Browse files
committed
Update build.yml
1 parent 37257f0 commit 82644a8

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,8 @@ jobs:
6363
name: packages
6464
path: '${{env.BUILD_PATH}}'
6565

66-
deploy:
67-
runs-on: ubuntu-latest
68-
needs: build
69-
if: success() && github.event_name != 'pull_request'
70-
71-
steps:
72-
- name: Download Artifact
73-
uses: actions/download-artifact@v3
74-
with:
75-
name: packages
76-
77-
- name: Publish Packages GitHub
78-
run: |
79-
for package in $(find -name "*.nupkg"); do
80-
echo "${0##*/}": Pushing $package...
81-
dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
82-
done
83-
8466
- name: Publish Packages Nuget
85-
if: startsWith(github.ref, 'refs/tags/v')
67+
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/v'))
8668
run: |
8769
for package in $(find -name "*.nupkg"); do
8870
echo "${0##*/}": Pushing $package...

0 commit comments

Comments
 (0)