release v0.1.0 v0.1.0
authorMichael Wallner <mike@php.net>
Tue, 1 Feb 2022 11:40:49 +0000 (12:40 +0100)
committerMichael Wallner <mike@php.net>
Tue, 1 Feb 2022 11:41:59 +0000 (12:41 +0100)
.github/workflows/release.yml [new file with mode: 0644]
README.md
docs/Makefile
docs/v0.0/ion.html
package.xml

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644 (file)
index 0000000..98b913d
--- /dev/null
@@ -0,0 +1,39 @@
+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)
+            });
+
index 905b958f9835b0e8daeaa36b094213e2825bad17..dc46f31b665ebbae400e80fb45f31189afc5baa1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -10,7 +10,26 @@ see [spdx.org](https://spdx.org/licenses/BSD-2-Clause.html).
 
 ## 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:
index b135b25645422f8f23c216effbc0f836b4e8a8f0..adc1b332527be7c1ff4180e8be4f4a8885a464dc 100644 (file)
@@ -1,6 +1,6 @@
 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)
 
 # ---
 
index 673d7a4eb8b5a00dba4462c01bb7aa68587a7674..db3733bfef5140412efc5802bcc57d4f9b9beb41 100644 (file)
 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
index cdae013e27711c0e2797255e98cd7350f5e2bd64..95af76aa756e944bf0174cf7b7d77481ac129f15 100644 (file)
@@ -20,7 +20,7 @@ https://awesomized.github.io/ext-ion/
   <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>