Skip to content

Commit

Permalink
Merge pull request #67 from phalcon/feature/#12-phar
Browse files Browse the repository at this point in the history
#12 - Implement release-phar.yml
  • Loading branch information
Jeckerson authored Mar 12, 2020
2 parents 09b500a + 984aa99 commit cffabb9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-phar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
release:
types:
- created

name: Upload Phar to Release

jobs:
build:
name: Compile and upload Phar
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Compile phalcon-migrations.phar
run: |
composer install --ignore-platform-reqs
vendor/bin/box compile
- name: Check existence of compiled .phar
run: test -e phalcon-migrations.phar && exit 0 || exit 10

- name: Upload to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./phalcon-migrations.phar
asset_name: phalcon-migrations.phar
asset_content_type: application/octet-stream

0 comments on commit cffabb9

Please sign in to comment.