Page tree
Skip to end of metadata
Go to start of metadata

The Netlify integration module allows the publishers to trigger one or several site(s) build(s) after a page has been published. 

Installation

Maven is the easiest way to install the module. Add the following dependency to your bundle:

<dependency>
  <groupId>info.magnolia.cdn</groupId>
  <artifactId>magnolia-netlify-integration</artifactId>
  <version>${netlifyIntegrationVersion}</version>
</dependency>

Versions

1.0Magnolia 6.2

Usage

Once installed and configured, the system will display an additional field in the publication dialog allowing the publisher to select one or several Netlify site(s) to build once the page is published.

Configuration

apiToken

required

The Netlify API token.

Publication dialog

The system will automatically enhance the publication dialog as following:

Once the linked publication task approved, Magnolia will trigger a build request per selected site in Netlify.

Warnings

  • This module is at INCUBATOR level.

Changelog

  • Version 1.0 - Initial release of the module.


5 Comments

  1. See git repository README for details of configuration.

  2. We are creating a REST client for https://api.netlify.com/api/v1 and setting up an API token in any module under /decorations/netlify-integration/config/config.yaml

    Where do we configure the Netlify sites that can be selected in "Build on Netlify" in the publication dialog, please? 

    1. They are retrieved over an API call

      1. Are the privileges to retrieve the Netlify sites tied to the API token?

        1. As far as I remember, you can generate access tokens with your Netlify user. I guess you inherit then the privileges of your user.