File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,10 @@ jobs:
172
172
deploy : # -----------------------------------------------------------------------
173
173
name : Deploy Phar
174
174
if : |
175
- github.repository_owner == 'EasyEngine' &&
176
- (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
175
+ github.repository_owner == 'EasyEngine' && (
176
+ startsWith(github.ref, 'refs/tags/') ||
177
+ github.ref == 'refs/heads/develop'
178
+ )
177
179
runs-on : ubuntu-latest
178
180
needs : [build, test]
179
181
@@ -193,8 +195,8 @@ jobs:
193
195
if : ${{ contains(github.ref, 'develop') }}
194
196
run : |
195
197
echo 'FILENAME=easyengine-nightly.phar' > $GITHUB_ENV
196
- - name : Set file name for master branch
197
- if : ${{ contains(github.ref, 'master ') }}
198
+ - name : Set file name for tag
199
+ if : ${{ contains(github.ref, 'refs/tags ') }}
198
200
run : |
199
201
echo 'FILENAME=easyengine.phar' > $GITHUB_ENV
200
202
You can’t perform that action at this time.
0 commit comments