Skip to content

Release PHAR

Release PHAR #7

Workflow file for this run

name: Release PHAR
on:
workflow_dispatch:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: box
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Dependencies
run: |
composer install --no-dev
cd asd-sync
npm install
cd ..
- name: Build PHAR
run: box compile
- name: Upload PHAR
uses: actions/upload-artifact@v2
with:
name: asd.phar
path: bin/asd.phar
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/asd.phar