diff --git a/LICENSE b/LICENSE index 98d468f..c0dc2a8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2020 Quantmind +Copyright 2025 Quantmind Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice diff --git a/action.yml b/action.yml index 182ec1e..4fe8933 100644 --- a/action.yml +++ b/action.yml @@ -11,6 +11,8 @@ inputs: env: description: "Metablock environment - can be set via the METABLOCK_ENV env variable" default: "stage" + name: + description: "Optional deployment name - can be set via the METABLOCK_NAME env variable" runs: using: "docker" image: "Dockerfile" @@ -24,3 +26,5 @@ runs: - ${{ inputs.block }} - "--env" - ${{ inputs.env }} + - "--name" + - ${{ inputs.name }} diff --git a/readme.md b/readme.md index 47361fd..ae043ca 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,6 @@ # Metablock Action [![build](https://github.com/quantmind/metablock-action/workflows/build/badge.svg)](https://github.com/quantmind/metablock-action/actions?query=workflow%3Abuild) -[![test](https://github.com/quantmind/metablock-action/workflows/test/badge.svg)](https://github.com/quantmind/metablock-action/actions?query=workflow%3Atest) Deploy a new version of an html block to metablock cloud. @@ -9,7 +8,8 @@ Deploy a new version of an html block to metablock cloud. - **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 locatiuon. 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) +- **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 [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`. +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`.