From 89479475d876ac1cf33aeb8f3bfbfb2922c84d90 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 18 Apr 2023 12:01:11 +0800 Subject: [PATCH] chore: add codemagic cloudflare upload --- codemagic.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/codemagic.yaml b/codemagic.yaml index 1fd53b2f..8bf588f2 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -7,6 +7,7 @@ workflows: environment: groups: - default + - cloudflare_credentials cache: cache_paths: - $CM_BUILD_DIR/node_modules @@ -48,6 +49,11 @@ workflows: - name: Notify artifact URL to Tailchat script: | node scripts/notify-links.js + - name: Install wrangler + script: npm install -g wrangler + - name: Deploy to Cloudflare Pages + script: | + wrangler pages publish android/app/build/outputs/apk/release --project-name tailchat-app --branch $CM_BRANCH ios: name: build, test & publish iOS version @@ -56,6 +62,7 @@ workflows: environment: groups: - default + - cloudflare_credentials cache: cache_paths: - $CM_BUILD_DIR/node_modules