Skip to content

Commit

Permalink
Update build-phar.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Dec 11, 2020
1 parent f40fbfd commit f430e19
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

on:
release:
types: [published]
types: [created]

name: Release workflow

Expand All @@ -12,7 +12,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@master
- name: build phar
uses: docker://phpdoc/phar-ga:master
- name: Install dependencies
uses: php-actions/composer@v4
with:
args: box compile
command: composer global require humbug/box
- name: build
run: box compile
- name: Upload the phar
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '/bin/*.phar'

0 comments on commit f430e19

Please sign in to comment.