From: Michael Wallner
Date: Tue, 1 Feb 2022 11:40:49 +0000 (+0100)
Subject: release v0.1.0
X-Git-Tag: v0.1.0
X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d9c8ef23fb4113a10573af526db722f78975dc5b;p=awesomized%2Fext-ion
release v0.1.0
---
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..98b913d
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -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)
+ });
+
diff --git a/README.md b/README.md
index 905b958..dc46f31 100644
--- 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:
diff --git a/docs/Makefile b/docs/Makefile
index b135b25..adc1b33 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -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)
# ---
diff --git a/docs/v0.0/ion.html b/docs/v0.0/ion.html
index 673d7a4..db3733b 100644
--- a/docs/v0.0/ion.html
+++ b/docs/v0.0/ion.html
@@ -265,7 +265,15 @@
See the Amazon ION specification.
License:#
BSD-2-Clause;
see spdx.org.
Installation:#
-
PECL and PHARext is WIP.
Dependencies:#
+PECL#
+
+pecl install ion
+
PHARext#
+
Watch out for PECL replicates
+and pharext packages attached to 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-8.1
diff --git a/package.xml b/package.xml
index cdae013..95af76a 100644
--- a/package.xml
+++ b/package.xml
@@ -20,7 +20,7 @@ https://awesomized.github.io/ext-ion/
mike@php.net
yes
- 2022-01-24
+ 2022-02-01
0.1.0
0.1.0