Skip to content

Commit

Permalink
Merge pull request #1869 from mrrobot47/update/build
Browse files Browse the repository at this point in the history
Update phar on tag
  • Loading branch information
mrrobot47 authored Oct 14, 2024
2 parents f59b42b + ed9a4cf commit b481769
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ jobs:
deploy: #-----------------------------------------------------------------------
name: Deploy Phar
if: |
github.repository_owner == 'EasyEngine' &&
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
github.repository_owner == 'EasyEngine' && (
startsWith(github.ref, 'refs/tags/') ||
github.ref == 'refs/heads/develop'
)
runs-on: ubuntu-latest
needs: [build, test]

Expand All @@ -193,8 +195,8 @@ jobs:
if: ${{ contains(github.ref, 'develop') }}
run: |
echo 'FILENAME=easyengine-nightly.phar' > $GITHUB_ENV
- name: Set file name for master branch
if: ${{ contains(github.ref, 'master') }}
- name: Set file name for tag
if: ${{ contains(github.ref, 'refs/tags') }}
run: |
echo 'FILENAME=easyengine.phar' > $GITHUB_ENV
Expand Down

0 comments on commit b481769

Please sign in to comment.