https://github.com/quantmind/metablock-action
Github action to deploy a new release of your blocks to metablock cloud during github CI.
https://github.com/quantmind/metablock-action
cloud metablock
Last synced: 25 days ago
JSON representation
Github action to deploy a new release of your blocks to metablock cloud during github CI.
- Host: GitHub
- URL: https://github.com/quantmind/metablock-action
- Owner: quantmind
- License: isc
- Created: 2020-06-21T18:36:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-19T10:37:33.000Z (10 months ago)
- Last Synced: 2025-04-19T16:16:13.800Z (10 months ago)
- Topics: cloud, metablock
- Language: JavaScript
- Homepage: https://metablock.io
- Size: 196 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Metablock Action
[](https://github.com/quantmind/metablock-action/actions?query=workflow%3Abuild)
Deploy a new version of an html block to metablock cloud.
## 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.
- **bundle**: bundle location. Alternatively set the `BUNDLE_LOCATION` environment variable, (it defaults to `./dist` if not provided)
- **env**: environment where to deploy, either `stage` or `prod`, (it defaults to `stage` if not provided). Can be set via `METABLOCK_ENV` environment variable.
- **name**: optional deployment name
Check the [build.yml](./.github/workflows/build.yml) manifest file for an example where pull requests to master are deployed to `stage` and a merge to `master` to `prod`.