-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 954 Bytes
/
build.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: Build plugin
on:
push:
jobs:
build-phar:
name: Build PHAR file
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup PHP 🐘
uses: pmmp/[email protected]
with:
php-version: 8.1
install-path: "./bin"
pm-version-major: "5"
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader --no-dev"
- uses: "ramsey/composer-install@v2"
with:
working-directory: "vendor-bin/box"
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Run Box
run: ./vendor-bin/box/vendor/bin/box compile
- uses: actions/upload-artifact@v3
with:
name: oh-my-pmmp
path: oh-my-pmmp.phar