Skip to content

Commit e39d5af

Browse files
committed
ci
1 parent b9706cc commit e39d5af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ jobs:
9393
release:
9494
needs: [ version , build ]
9595
runs-on: ubuntu-latest
96-
if: github.ref == 'refs/heads/master' && github.ref == 'refs/heads/master' && secrets.GIT_TOKEN != ''
97-
96+
if: github.ref == 'refs/heads/master' && github.ref == 'refs/heads/master' && github.event_name == 'push'
9897
steps:
9998
- name: checkout
10099
uses: actions/checkout@v3
@@ -114,11 +113,10 @@ jobs:
114113
generate_releases: true
115114
draft: false
116115
prerelease: true
117-
token: ${{ secrets.GIT_TOKEN }}
118116
files: artifacts/*.*
119117

120118
- name: publish to NuGet
121-
if: ${{ secrets.NUGET_TOKEN != '' }}
119+
if: secrets.NUGET_TOKEN != ''
122120
env:
123121
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
124122
run: |

0 commit comments

Comments
 (0)