Skip to content

Build Textpattern Plugin TXT Package

Actions
Package a Textpattern plugin as a TXT package, and optionally add package to the release that triggered the workflow
v1.0
Latest
Star (1)

alieninternet/build-txpplugin-txt
Build and release Textpattern plugin packages

Package a Textpattern plugin as a TXT package, and optionally add package to the release that triggered the workflow.

Theory of Operation

This action downloads and executes the Textpattern Plugin Packager (ais_txpplugin_packager to produce a plugin package.

Optionally, the resulting files (the TXT plugin package and its SHA-256 checksum file) can be added to the release triggering the workflow automatically.

Example

Example workflows can be found here. Here is a simple example workflow (simplified from this example) that builds and releases a plugin package when you publish a release:

on:
  release:
    type: [published]

permissions:
  contents: write

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check-out repository
        uses: actions/checkout@v4

      - name: Build and release package
        uses: alieninternet/build-txpplugin-txt@v1
        with:
          release_files: 'true'

Usage

Use the action from the GitHub actions marketplace by referencing alieninternet/build-txpplugin-txt@v1.

Inputs

folder - Folder containing the plugin files

Folder containing the plugin files (should include manifest.json).

If not provided, it is assumed the plugin file is in the current working directory. If you haven't changed directory before calling this action, that would be the root of your repository.

package_filename (Optional) - Package filename

Optional package filename.

If not provided, the action will read manifest.json from the specified plugin source folder and construct a filename as <plugin name>_v<version>.txt, with dots in the version replaced by underscores.

release_files (Optional) - Release files?

If set to true, automatically add the generated files to the release.

github_token (Optional) - GitHub token

This option defaults to the repository scoped GitHub Token.

If you need more permissions for things such as deploying to another repository, you can add a Personal Access Token (PAT) here.

Learn more about creating and secrets here.

Outputs

output_file

- The file name of the package that was built
Append .sha256 to this for the generated SHA-256 checksum file.

Build Textpattern Plugin TXT Package is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Package a Textpattern plugin as a TXT package, and optionally add package to the release that triggered the workflow
v1.0
Latest

Build Textpattern Plugin TXT Package is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.