Skip to content

Automattic/githubdeployments-plugin-build-example

Folders and files

Image for: Folders and files
NameName
Last commit message
Last commit date

Latest commit

Image for: Latest commit
 

History

Image for: History
4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image for: Repository files navigation

githubdeployments-plugin-build-example

An example plugin repository (of a plugin that registers a block) with a workflow script that generates a build version of the block being registered

The workflow does the following:

The workflow is triggered on pushes to the main branch or manually via workflow dispatch. It:

  • Checkout the repository
  • Instals Node with the Node Action
  • Runs npm install to install dependencies in package.json
  • Runs npm run build to run the build process
  • Creates a build artifact with name wpcom which is required for WordPress.com's GitHub Deployment feature. The artifact contains the built plugin files, excluding development files like:
    • Git files
    • Source files
    • Node modules
    • Package files
    • Webpack config
    • README

About

Image for: About

An example plugin repository with a workflow script that generates a build version of the block being registered

Resources

Stars

Watchers

Forks

Releases

Image for: Releases
No releases published

Packages

Image for: Packages 0
No packages published