Append fink.phar to release #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: | |
- created | |
name: Append fink.phar to release | |
jobs: | |
build: | |
name: Compile and upload Phar | |
runs-on: ubuntu-latest | |
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/4.6.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 |