This GitHub Action packages a source repository containing a Textpattern CMS plugin and creates installers using mtxpc.
Usage
Create a workflow file that checkouts your source code and builds it:
name: Example Workflow on: [push] jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Build id: build uses: gocom/action-textpattern-package-plugin@master - name: Print Built Installers run: | cat ${{ github.workspace }}/${{ steps.build.outputs.compressed }} cat ${{ github.workspace }}/${{ steps.build.outputs.uncompressed }}
See rah_flat repository for live workflow examples, and releases containing uploaded plugin installers.
Input Arguments
| Input | Description | Default |
|---|---|---|
source |
Path to the plugin source directory containing manifest.json. The path is relative to the repository root. |
Defaults to repository root directory. |
output |
Path to the output directory where build artifacts are saved to, relative to $GITHUB_WORKSPACE. |
build/packages. |
Output Variables
| Output | Description |
|---|---|
name |
The name of the built plugin. |
version |
The version number from the manifest file. |
compressed |
Path to the compressed plugin installer file, relative to $GITHUB_WORKSPACE. |
uncompressed |
Path to the uncompressed plugin installer file, relative to $GITHUB_WORKSPACE. |