@mservicestech/strapi-plugin-github-publish
v1.3.3
Published
Strapi plugin to publish changes via GitHub Actions.
Downloads
150
Readme
Strapi plugin strapi-plugin-github-publish
Description
This plugin allows you to run GitHub actions directly from Strapi admin panel.
Installation
npm install @mservicestech/strapi-plugin-github-publish
# or
yarn add @mservicestech/strapi-plugin-github-publish
Configuration
To setup plugin you need to add following entry to the ./config/plugins.js
file:
module.exports = ({ env }) => ({
// ...
'strapi-plugin-github-publish': {
enabled: true,
config: {
owner: 'github_owner', // GitHub organisation or user
repo: 'your_repository', // name of the repository
workflow_id: 'workflow_name.yml', // workflow_id or filename
token: env('GITHUB_DISPATCH_WORKFLOW_PERSONAL_ACCESS_TOKEN'), // GitHub personal access token with access to trigger workflows and view build status
branch: 'master', // branch the workflow should be triggered on
inputs: {
// Optional inputs to pass through to the GitHub workflow
// some_input: "Some value",
},
},
},
// ...
});