-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.19 KB
/
upload-file-assets.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
name: Upload bundle file as assets
on:
workflow_call:
permissions:
contents: write
env:
APP_ENV: production
APP_DEBUG: false
jobs:
build-assets:
name: Build assets with PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.1", "8.2", "8.3"]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@67271131b1870a5a241694badbda0ac2cae0648e
with:
php-version: ${{ matrix.php-versions }}
extensions: pcntl, zip, intl, exif, mbstring, dom, fileinfo
- name: Install Composer Dependencies
run: composer install -q --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader
- name: Compress into Zip file
run: zip -r -q -9 -X radioroster_${{ github.ref_name }}-php${{ matrix.php-versions }}.zip .
- name: Upload zip file as asset
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
files: radioroster_${{ github.ref_name }}-php${{ matrix.php-versions }}.zip