Skip to content

Commit b481769

Browse files
authored
Merge pull request #1869 from mrrobot47/update/build
Update phar on tag
2 parents f59b42b + ed9a4cf commit b481769

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test_and_build.yml

Lines changed: 6 additions & 4 deletions
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)