--- /dev/null
+name: release
+on:
+ push:
+ tags: "v**"
+
+jobs:
+ pharext:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install
+ run: |
+ sudo apt-get install -y \
+ php-cli \
+ php-phar \
+ php-posix
+ - name: Composer
+ run: composer require m6w6/pharext
+ - name: Pharext
+ run: ./vendor/bin/pharext -vps . --release ${GITHUB_REF_NAME:1}
+ - name: Release
+ uses: actions/github-script@v5
+ with:
+ script: |
+ const release = await github.rest.repos.createRelease({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ tag_name: process.env.GITHUB_REF_NAME,
+ body: context.payload.head_commit.message
+ });
+ const phar_file = "ion-" + process.env.GITHUB_REF_NAME.substring(1) + ".ext.phar";
+ const asset = await github.rest.repos.uploadReleaseAsset({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ release_id: release.data.id,
+ body: context.payload.head_commit.message,
+ data: require("fs").readFileSync(phar_file)
+ });
+
## Installation:
-[PECL](https://pecl.php.net) and [PHARext](https://pharext.org) is WIP.
+### PECL
+
+ pecl install ion
+
+
+### PHARext
+
+Watch out for [PECL replicates](https://replicator.pharext.org?ion)
+and pharext packages attached to [releases](./releases).
+
+### Checkout
+
+ git clone github.com:awesomized/ext-ion
+
+ cd ext-ion
+
+ /path/to/phpize
+ ./configure --with-php-config=/path/to/php-config
+ make
+ sudo make install
### Dependencies:
#### Required:
PHP ?= php
COMPOSER ?= composer
-TAG := $(shell (git describe --tags --exact-match --match=v[1-9]* 2>/dev/null || echo v0.0) | cut -d. -f-2)
+TAG := $(shell (git describe --tags --exact-match --match=v[0-9]* 2>/dev/null || echo v0.0) | cut -d. -f-2)
# ---
See 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>
</h2><p><a href="https://github.com/awesomized/ext-ion/blob/master/LICENSE">BSD-2-Clause</a>;
see <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>
-</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>
+</h2><h3 id="PECL">PECL<a class="permalink" href="ion#PECL">#</a>
+</h3><pre><code><span style="color: inherit" class="html">
+pecl install ion<br></span>
+</code></pre><h3 id="PHARext">PHARext<a class="permalink" href="ion#PHARext">#</a>
+</h3><p>Watch out for <a href="https://replicator.pharext.org?ion">PECL replicates</a>
+and pharext packages attached to <a href="./releases">releases</a>.</p><h3 id="Checkout">Checkout<a class="permalink" href="ion#Checkout">#</a>
+</h3><pre><code><span style="color: inherit" class="html">
+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>
+</code></pre><h3 id="Dependencies:">Dependencies:<a class="permalink" href="ion#Dependencies:">#</a>
</h3><h4 id="Required:">Required:<a class="permalink" href="ion#Required:">#</a>
</h4><ul>
<li>PHP-8.1
<email>mike@php.net</email>
<active>yes</active>
</lead>
- <date>2022-01-24</date>
+ <date>2022-02-01</date>
<version>
<release>0.1.0</release>
<api>0.1.0</api>