-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.33 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
41
42
43
44
45
46
47
48
49
50
51
52
name: release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
php: ['8.3']
arch: ['x86_64']
os: ['linux']
steps:
- name: 'Checkout Code'
uses: 'actions/checkout@v4'
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
extensions: intl, zip, zlib
coverage: none
ini-values: memory_limit=1G, phar.readonly=0
- name: 'Install Project Dependencies'
run: composer install --no-interaction --no-ansi --no-progress
- name: 'Compile the application'
run: |
vendor/bin/castor repack --os={{ matrix.os }} --app-name=beaver --app-version=${{ github.ref_name }}
vendor/bin/castor compile beaver.linux.phar --php-version=${{ matrix.php }} --arch={{ matrix.arch }} --os={{ matrix.os }}
- name: 'Move applications'
run: mv beaver.* ./bin/
- name: 'Create Release'
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: 'Next stable release.'
allowUpdates: true
artifacts: 'bin/*'
artifactContentType: application/x-php