Skip to content

Commit 96eeff8

Browse files
committed
Update phar on tag
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent b90da0d commit 96eeff8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test_and_build.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,10 @@ jobs:
172172
deploy: #-----------------------------------------------------------------------
173173
name: Deploy Phar
174174
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+
)
177179
runs-on: ubuntu-latest
178180
needs: [build, test]
179181

@@ -193,8 +195,8 @@ jobs:
193195
if: ${{ contains(github.ref, 'develop') }}
194196
run: |
195197
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') }}
198200
run: |
199201
echo 'FILENAME=easyengine.phar' > $GITHUB_ENV
200202

0 commit comments

Comments
 (0)