-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.17 KB
/
publish-phar.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
name: Publish the released PHAR
on:
release:
types: [ created ]
workflow_dispatch:
inputs:
tag:
description: 'Tag release version'
required: true
jobs:
publish:
runs-on: ubuntu-22.04
name: Release PHAR
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip
ini-values: error_reporting=E_ALL
tools: composer:v2, phive
coverage: none
- name: Install the dependencies
run: composer install --prefer-dist --no-progress
- name: Create the PHAR file.
run: ./ringier-code-style app:build ringier-code-style --build-version=${{ github.ref_name }}
- name: Upload the PHAR artifact
uses: actions/upload-artifact@v3
with:
name: ringier-code-style.phar
path: builds/ringier-code-style
- name: Upload the PHAR to release
run: gh release upload ${{ github.ref_name }} builds/ringier-code-style
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}