Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.68 KB

File metadata and controls

56 lines (41 loc) · 1.68 KB

Package Textpattern CMS plugin GitHub Action

This GitHub Action packages a source repository containing a Textpattern CMS plugin and creates installers.

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@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.

Input Arguments

  • 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 to build/packages.

Output Variables

  • 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.