Skip to content

⬆️ Update github actions #5

⬆️ Update github actions

⬆️ Update github actions #5

name: Build Artifact
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Make '.build' directory
run: mkdir .build
- name: Download DevTools/ConsoleScript.php
run: wget -O .build/build.php https://raw.githubusercontent.com/pmmp/DevTools/stable/src/ConsoleScript.php
- name: Build source to artifact.phar
run: php -dphar.readonly=0 .build/build.php --make ./ --out .build/artifact.phar
- name: Display structure of current working directory
run: ls -R
- name: Upload artifact.phar
uses: actions/upload-artifact@v4
with:
name: artifact
path: .build/artifact.phar
retention-days: 90