-
Notifications
You must be signed in to change notification settings - Fork 19
50 lines (42 loc) · 1.41 KB
/
publish.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
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Publish PHAR file
runs-on: ubuntu-latest
steps:
- name: "Checkout project"
uses: actions/checkout@v1
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
extensions: imagick
ini-values: memory_limit=-1, phar.readonly=Off
tools: composer
- name: "Install dependencies with composer"
run: |
sudo apt-get install graphviz
composer install --optimize-autoloader --prefer-dist --no-interaction --no-progress --no-dev --no-plugins
- name: "Import GPG Key"
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: "Build PHAR file"
run: |
wget https://github.com/box-project/box/releases/download/3.16.0/box.phar
chmod +x box.phar
./box.phar compile -vv
gpg -u [email protected] --detach-sign --output phuml.phar.asc phuml.phar
ls -alh phuml*
- name: "Upload binaries to distribute phUML via PHIVE"
uses: "svenstaro/upload-release-action@v2"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: phuml.phar*
tag: ${{ github.ref }}
file_glob: true