-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.02 KB
/
create-uppm-phar-release.yml
File metadata and controls
38 lines (33 loc) · 1.02 KB
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
name: create uppm.phar for release
on:
release:
types: [created]
jobs:
build:
name: Build release binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.2.3
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Building UPPM
run: |
sudo chmod 777 /etc/php/8.1/cli/php.ini
sudo echo phar.readonly = Off >> /etc/php/8.1/cli/php.ini
php8.1 target/uppm.phar lock
php8.1 target/uppm.phar install
php8.1 src/main/bootstrap.php build
chmod +x ./target/uppm.phar
- name: Upload release binary
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/uppm.phar
asset_name: uppm.phar
asset_content_type: application/octet-stream