-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (32 loc) · 1.04 KB
/
release.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
39
40
name: Release
on: push
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
- name: Install PHP deps
uses: ramsey/composer-install@v2
- name: Build
run: |
curl -OL "https://github.com/box-project/box/releases/latest/download/box.phar"
mv box.phar box
php box compile
mkdir -p ./build
mv index.phar ./build/
cd build || exit
curl -OL https://dl.static-php.dev/static-php-cli/common/php-8.3.6-micro-macos-aarch64.tar.gz -C -
tar -xvf php-8.3.6-micro-macos-aarch64.tar.gz
cat ./micro.sfx ./index.phar > ./phpup && chmod 0755 ./phpup
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/phpup