From b3815fdb7b0e45ed11055367a908aa200556ba2b Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Sun, 13 Jul 2025 16:24:25 +0200 Subject: [PATCH 1/2] docs: github ${{ env.JUNO_MODE }} Signed-off-by: David Dal Busco --- docs/guides/github-actions/deploy-frontend.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/guides/github-actions/deploy-frontend.md b/docs/guides/github-actions/deploy-frontend.md index df8a38f4..c0b21172 100644 --- a/docs/guides/github-actions/deploy-frontend.md +++ b/docs/guides/github-actions/deploy-frontend.md @@ -61,6 +61,35 @@ If your `juno.config` file does not build your application using a `predeploy` f --- +## Modes + +The GitHub Action is basically just an environment that proxies commands to the CLI. That’s why you can also pass the `--mode` option flag. Useful, for example, if you want to deploy your app for a `staging` instead of the default `production`. + +You can either hardcode the mode in the arguments: + +```yaml +- name: Deploy to Juno + uses: junobuild/juno-action@main + with: + args: deploy --mode staging + env: + JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }} +``` + +Or, if you're using an environment variable, pass it like this: + +```yaml +- name: Deploy to Juno + uses: junobuild/juno-action@main + with: + args: deploy --mode ${{ env.JUNO_MODE }} + env: + JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }} + JUNO_MODE: staging +``` + +--- + ## Optimization & Best Practices Below are key considerations to ensure efficient and cost-effective deployment of your project. From bfaaed09a06f9e6d7eb02e72b17d4982e0acb052 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 13 Jul 2025 14:26:02 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=84=20Update=20LLMs.txt=20snapshot?= =?UTF-8?q?=20for=20PR=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .llms-snapshots/llms-full.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.llms-snapshots/llms-full.txt b/.llms-snapshots/llms-full.txt index ad31868c..ea841904 100644 --- a/.llms-snapshots/llms-full.txt +++ b/.llms-snapshots/llms-full.txt @@ -6262,6 +6262,24 @@ If your `juno.config` file does not build your application using a `predeploy` f --- +## Modes + +The GitHub Action is basically just an environment that proxies commands to the CLI. That’s why you can also pass the `--mode` option flag. Useful, for example, if you want to deploy your app for a `staging` instead of the default `production`. + +You can either hardcode the mode in the arguments: + +``` +- name: Deploy to Juno uses: junobuild/juno-action@main with: args: deploy --mode staging env: JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }} +``` + +Or, if you're using an environment variable, pass it like this: + +``` +- name: Deploy to Juno uses: junobuild/juno-action@main with: args: deploy --mode ${{ env.JUNO_MODE }} env: JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }} JUNO_MODE: staging +``` + +--- + ## Optimization & Best Practices Below are key considerations to ensure efficient and cost-effective deployment of your project.