Skip to content

Commit 96242b2

Browse files
authored
Name input (#10)
* Add name input * new example * Use python client * Use python client * Use python client * test env * Build gain * Build gain * Add name input
1 parent 0418ad3 commit 96242b2

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2020 Quantmind
1+
Copyright 2025 Quantmind
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose
44
with or without fee is hereby granted, provided that the above copyright notice

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ inputs:
1111
env:
1212
description: "Metablock environment - can be set via the METABLOCK_ENV env variable"
1313
default: "stage"
14+
name:
15+
description: "Optional deployment name - can be set via the METABLOCK_NAME env variable"
1416
runs:
1517
using: "docker"
1618
image: "Dockerfile"
@@ -24,3 +26,5 @@ runs:
2426
- ${{ inputs.block }}
2527
- "--env"
2628
- ${{ inputs.env }}
29+
- "--name"
30+
- ${{ inputs.name }}

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Metablock Action
22

33
[![build](https://github.com/quantmind/metablock-action/workflows/build/badge.svg)](https://github.com/quantmind/metablock-action/actions?query=workflow%3Abuild)
4-
[![test](https://github.com/quantmind/metablock-action/workflows/test/badge.svg)](https://github.com/quantmind/metablock-action/actions?query=workflow%3Atest)
54

65
Deploy a new version of an html block to metablock cloud.
76

87
## Inputs
98

109
- **token**: Metablock API token, you need to create one on the metablock admin. Alternatively set the `METABLOCK_API_TOKEN` environment variable.
1110
- **block**: Metablock Block ID. Alternatively set the `METABLOCK_BLOCK_ID` environment variable.
12-
- **bundle**: bundle locatiuon. Alternatively set the `BUNDLE_LOCATION` environment variable, (it defaults to `./dist` if not provided)
13-
- **env**: environment where to deploy, either `stage` or `prod`, (it defaults to `stage` if not provided)
11+
- **bundle**: bundle location. Alternatively set the `BUNDLE_LOCATION` environment variable, (it defaults to `./dist` if not provided)
12+
- **env**: environment where to deploy, either `stage` or `prod`, (it defaults to `stage` if not provided). Can be set via `METABLOCK_ENV` environment variable.
13+
- **name**: optional deployment name
1414

15-
Check the [test.yml](./.github/workflows/test.yml) manifest file for an example where pull requests to master are deployed to `stage` and a merge to `master` to `prod`.
15+
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`.

0 commit comments

Comments
 (0)