2019-12-18 15:26:30 +01:00
# Koha Plugin kpz Builder
This action builds a kpz file from a given name and version.
The file will be in your GitHub workspace after the action is run.
## Inputs
### `release-version`
2019-12-18 15:31:15 +01:00
**Required** Version for this koha plugin release, e.g. `v1.0.3`
2019-12-18 15:26:30 +01:00
### `release-name`
2019-12-18 15:31:15 +01:00
**Required** Name of plugin, should almost always be the repo name, e.g. `koha-plugin-kitchen-sink`
2019-12-18 15:26:30 +01:00
2021-05-19 15:14:12 +02:00
### `minimum-version`
2020-04-16 14:10:33 +02:00
**Required** Minimum version of Koha this plugin is compatible with, e.g. `19.11` or `19.11.03`
2020-08-17 17:05:16 +02:00
### `plugin-module`
**Optional** Path to the plugin module file, relative to the plugin root directory. If not provided, action will attempt to auto-detect the module path.
2020-04-16 14:10:33 +02:00
Best practice is to keep plugins compatible across all currently supported versions of Koha
2019-12-18 15:26:30 +01:00
## Outputs
### `filename`
The name of the built kpz file
## Example usage
2019-12-18 15:30:29 +01:00
```yaml
2019-12-18 21:16:10 +01:00
- name: Build Koha Plugin kpz artifact
id: kpz
uses: "bywatersolutions/github-action-koha-plugin-create-kpz@master"
with:
release-version: ${{ steps.semvers.outputs.v_patch }}
release-name: ${{ steps.myvars.outputs.GITHUB_REPO }}
2020-04-16 15:38:32 +02:00
minimum-version: ${{ steps.koha-version-oldstable.outputs.version-major-minor }}
2020-08-17 17:05:16 +02:00
plugin-module: 'Path/To/Plugin/Module.pm"
2019-12-18 15:30:29 +01:00
```
2019-12-18 21:16:10 +01:00
Take a look at https://github.com/bywatersolutions/koha-plugin-kitchen-sink/blob/master/.github/workflows/main.yml for a real world usage.