This GitHub Action packages a source repository containing a Textpattern CMS plugin and creates installers.
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@v1
- 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 action results containing uploaded artifacts.
- source Path to the plugin source directory, relative to the repository root, if something else than repository root.
- output
Path to the output directory where build artifacts are saved to, relative to
$GITHUB_WORKSPACE
. Defaults tobuild/packages
.
- name Name of the built plugin.
- version 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
.