-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (32 loc) · 966 Bytes
/
release-phar.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
release:
types:
- created
name: Append fink.phar to release
jobs:
build:
name: Compile and upload Phar
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set PHP 8.0
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Compile fink.phar
run: |
composer install
wget https://github.com/box-project/box/releases/download/3.9.1/box.phar
php box.phar compile
- name: Check existence of compiled .phar
run: test -e fink.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: ./fink.phar
asset_name: fink.phar
asset_content_type: application/octet-stream