From 8d529623920074df0b8c8bded543dfca3247551a Mon Sep 17 00:00:00 2001 From: m5r Date: Sat, 28 Aug 2021 05:29:14 +0800 Subject: [PATCH] pass DATOCMS_API_TOKEN from github action deploy job --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 125674e..a584e88 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} with: - args: "deploy -c ./fly.dev.toml" + args: "deploy -c ./fly.dev.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}" deploy_prod: if: github.ref == 'refs/heads/production' @@ -66,5 +66,5 @@ jobs: env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} with: - args: "deploy -c ./fly.prod.toml" + args: "deploy -c ./fly.prod.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}" # TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data