Skip to content

Github actions PHAR building #6

Github actions PHAR building

Github actions PHAR building #6

Workflow file for this run

name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
- name: Install Dependencies
run: composer install
- name: Generate PHAR file
run: composer box compile
- name: Upload phar to release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/svgtinyps.phar