File tree Expand file tree Collapse file tree 5 files changed +70
-4
lines changed Expand file tree Collapse file tree 5 files changed +70
-4
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ tags : " v**"
5+
6+ jobs :
7+ pharext :
8+ runs-on : ubuntu-20.04
9+ steps :
10+ - uses : actions/checkout@v2
11+ - name : Install
12+ run : |
13+ sudo apt-get install -y \
14+ php-cli \
15+ php-phar \
16+ php-posix
17+ - name : Composer
18+ run : composer require m6w6/pharext
19+ - name : Pharext
20+ run : ./vendor/bin/pharext -vps . --release ${GITHUB_REF_NAME:1}
21+ - name : Release
22+ uses : actions/github-script@v5
23+ with :
24+ script : |
25+ const release = await github.rest.repos.createRelease({
26+ owner: context.repo.owner,
27+ repo: context.repo.repo,
28+ tag_name: process.env.GITHUB_REF_NAME,
29+ body: context.payload.head_commit.message
30+ });
31+ const phar_file = "ion-" + process.env.GITHUB_REF_NAME.substring(1) + ".ext.phar";
32+ const asset = await github.rest.repos.uploadReleaseAsset({
33+ owner: context.repo.owner,
34+ repo: context.repo.repo,
35+ release_id: release.data.id,
36+ body: context.payload.head_commit.message,
37+ data: require("fs").readFileSync(phar_file)
38+ });
39+
Original file line number Diff line number Diff line change @@ -10,7 +10,26 @@ see [spdx.org](https://spdx.org/licenses/BSD-2-Clause.html).
1010
1111## Installation:
1212
13- [ PECL] ( https://pecl.php.net ) and [ PHARext] ( https://pharext.org ) is WIP.
13+ ### PECL
14+
15+ pecl install ion
16+
17+
18+ ### PHARext
19+
20+ Watch out for [ PECL replicates] ( https://replicator.pharext.org?ion )
21+ and pharext packages attached to [ releases] ( ./releases ) .
22+
23+ ### Checkout
24+
25+ git clone github.com:awesomized/ext-ion
26+
27+ cd ext-ion
28+
29+ /path/to/phpize
30+ ./configure --with-php-config=/path/to/php-config
31+ make
32+ sudo make install
1433
1534### Dependencies:
1635#### Required:
Original file line number Diff line number Diff line change 11PHP ?= php
22COMPOSER ?= composer
3- TAG := $(shell (git describe --tags --exact-match --match=v[1 -9]* 2>/dev/null || echo v0.0) | cut -d. -f-2)
3+ TAG := $(shell (git describe --tags --exact-match --match=v[0 -9]* 2>/dev/null || echo v0.0) | cut -d. -f-2)
44
55# ---
66
Original file line number Diff line number Diff line change 265265See the < a href ="https://amzn.github.io/ion-docs/ "> Amazon ION specification</ a > .</ p > < h2 id ="License: "> License:< a class ="permalink " href ="ion#License: "> #</ a >
266266</ h2 > < p > < a href ="https://github.com/awesomized/ext-ion/blob/master/LICENSE "> BSD-2-Clause</ a > ;
267267see < a href ="https://spdx.org/licenses/BSD-2-Clause.html "> spdx.org</ a > .</ p > < h2 id ="Installation: "> Installation:< a class ="permalink " href ="ion#Installation: "> #</ a >
268- </ h2 > < p > < a href ="https://pecl.php.net "> PECL</ a > and < a href ="https://pharext.org "> PHARext</ a > is WIP.</ p > < h3 id ="Dependencies: "> Dependencies:< a class ="permalink " href ="ion#Dependencies: "> #</ a >
268+ </ h2 > < h3 id ="PECL "> PECL< a class ="permalink " href ="ion#PECL "> #</ a >
269+ </ h3 > < pre > < code > < span style ="color: inherit " class ="html ">
270+ pecl install ion< br > </ span >
271+ </ code > </ pre > < h3 id ="PHARext "> PHARext< a class ="permalink " href ="ion#PHARext "> #</ a >
272+ </ h3 > < p > Watch out for < a href ="https://replicator.pharext.org?ion "> PECL replicates</ a >
273+ and pharext packages attached to < a href ="./releases "> releases</ a > .</ p > < h3 id ="Checkout "> Checkout< a class ="permalink " href ="ion#Checkout "> #</ a >
274+ </ h3 > < pre > < code > < span style ="color: inherit " class ="html ">
275+ git clone github.com:awesomized/ext-ion< br > < br > cd ext-ion< br > < br > /path/to/phpize< br > ./configure --with-php-config=/path/to/php-config< br > make< br > sudo make install< br > </ span >
276+ </ code > </ pre > < h3 id ="Dependencies: "> Dependencies:< a class ="permalink " href ="ion#Dependencies: "> #</ a >
269277</ h3 > < h4 id ="Required: "> Required:< a class ="permalink " href ="ion#Required: "> #</ a >
270278</ h4 > < ul >
271279< li > PHP-8.1
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ https://awesomized.github.io/ext-ion/
2020 <email >mike@php.net</email >
2121 <active >yes</active >
2222 </lead >
23- <date >2022-01-24 </date >
23+ <date >2022-02-01 </date >
2424 <version >
2525 <release >0.1.0</release >
2626 <api >0.1.0</api >
You can’t perform that action at this time.
0 commit comments