From 5d0f2ad3b91112314145ee0f3c31c824b4ffc884 Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Mon, 1 Jan 2024 23:07:29 -0800 Subject: [PATCH] Fix deploy. --- configure.py | 4 +++- site/BUILD | 7 +++++++ site/pico-ice.html | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 6651df3..87e39a9 100755 --- a/configure.py +++ b/configure.py @@ -428,11 +428,13 @@ def ForthTest(target, forth, test, interp='', pool=None): return target -def Command(target, source, command, implicit=[]): +def Command(target, source, command, implicit=[], pool=None): global output implicit = ' '.join(implicit) output += f'build {target}: cmd {source} | {implicit}\n' output += f' cmd = {command}\n' + if pool: + output += f' pool = {pool}\n' return target diff --git a/site/BUILD b/site/BUILD index 275e35a..02a4e21 100644 --- a/site/BUILD +++ b/site/BUILD @@ -54,6 +54,13 @@ DEPLOY_ITEMS += [ Alias('site', ' '.join(DEPLOY_ITEMS)) +Alias('deploy', ' '.join([ + Command('deploy-esp32', 'site', + 'cd $dst/deploy && gcloud app deploy -q --project esp32forth *.yaml', pool='console'), + Command('deploy-eforth', 'site', + 'cd $dst/deploy && gcloud app deploy -q --project eforth *.yaml', pool='console'), +])) + Alias('publish', ' '.join([ Alias('publish-esp32', ' '.join([ Publish('publish-esp32-rev', diff --git a/site/pico-ice.html b/site/pico-ice.html index f547c91..a514704 100644 --- a/site/pico-ice.html +++ b/site/pico-ice.html @@ -85,7 +85,7 @@ limitations under the License.
  • Copy ueforth-pico-ice.uf2 to the mounted drive.

  • - +
    See detailed instructions for MCU programming