Package Textpattern CMS plugin GitHub Action

September 16, 2025 ยท View on GitHub

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

InputDescriptionDefault
sourcePath to the plugin source directory containing manifest.json. The path is relative to the repository root.Defaults to repository root directory.
outputPath to the output directory where build artifacts are saved to, relative to $GITHUB_WORKSPACE.build/packages.

Output Variables

OutputDescription
nameThe name of the built plugin.
versionThe version number from the manifest file.
compressedPath to the compressed plugin installer file, relative to $GITHUB_WORKSPACE.
uncompressedPath to the uncompressed plugin installer file, relative to $GITHUB_WORKSPACE.