This script is used to promote your Monday app to live using the mapps
CLI tool.
Ensure you have the following:
- A valid Monday developer token.
- Access to the
mapps
CLI installed and configured on your machine.
-
TOKEN
(Required)
Your Monday developer token.
Can be acquired here: https://.monday.com/apps/manage/tokens -
APP_ID
(Mandatory ifVERSION_ID
is provided)
The app ID to promote.
Can be found using themapps app:list
command or in the Developer Center. -
VERSION_ID
(Optional)
The version ID to promote, will promote the latest draft version if this param will be empty.
Can be found using themapps app-version:list
command or in the Developer Center.
name: Promote app to live
on:
push:
branches:
- main
jobs:
promote:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Promote app to live
run: |
./mapps_deploy_script.sh ${{ secrets.MONDAY_TOKEN }} 10110073 20210004
- Initializes the
mapps
CLI with the provided token. - Checks and prepares arguments for:
- App ID (
-a
) - Version ID (
-i
)
- App ID (
- Runs the
mapps app::promote
command with the provided arguments.