-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.17 KB
/
upload-binary-to-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
name: Artifacts
on:
push:
tags:
- "*"
jobs:
push:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
name: Upload Binary to Release
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, intl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: pcov
- uses: actions/[email protected]
name: Cache Composer dependencies
with:
path: ~/.composer/cache/files
key: composer-${{ hashFiles('composer.json') }}
- name: Install dependencies
run: |
composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader --no-dev
- name: Compile binary
run: |
php artisan app:build operator --build-version=stable
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: builds/operator
asset_name: operator
tag: ${{ github.ref }}
overwrite: true