Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metablock-web

build release

Github action for deploying a new version of an html block to metablock cloud. It is a docker action wrapping metablock ship from the metablock python client: the bundle directory of a static site is zipped and shipped to the block, in either the stage or prod environment.

It deploys html blocks only. Other block types are not shipped this way, and block configuration is handled by the sibling metablock-ingress action.

Usage

- uses: quantmind/metablock-web@v5
  env:
    METABLOCK_API_TOKEN: ${{ secrets.METABLOCK_API_TOKEN }}
  with:
    block: my-block-id
    org: my-org-id
    env: prod
    bundle: dist

Inputs

  • token: Metablock API token, you need to create one on the metablock admin. Alternatively set the METABLOCK_API_TOKEN environment variable.
  • block: Metablock Block ID. Alternatively set the METABLOCK_BLOCK_ID environment variable.
  • org: Metablock organization id the request acts within. Alternatively set the METABLOCK_ORG_ID environment variable. Required by the API for org-owned blocks.
  • bundle: filesystem location of the bundle to deploy, defaults to ./dist.
  • env: environment to deploy to, either stage or prod, defaults to stage. Alternatively set the METABLOCK_ENV environment variable.
  • name: optional deployment name. Alternatively set the METABLOCK_NAME environment variable.

Check the build.yml manifest file for an example where pushes to a branch are deployed to stage and a merge to main to prod.

Releasing

Bump VERSION, add the matching section to docs/release-notes.md and run make release — see release.instructions.md.

About

Github action to deploy a new release of your web site to metablock cloud

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages