Fix deploy.

This commit is contained in:
Brad Nelson
2024-01-01 23:07:29 -08:00
parent af26e61de9
commit 5d0f2ad3b9
3 changed files with 11 additions and 2 deletions

View File

@ -428,11 +428,13 @@ def ForthTest(target, forth, test, interp='', pool=None):
return target return target
def Command(target, source, command, implicit=[]): def Command(target, source, command, implicit=[], pool=None):
global output global output
implicit = ' '.join(implicit) implicit = ' '.join(implicit)
output += f'build {target}: cmd {source} | {implicit}\n' output += f'build {target}: cmd {source} | {implicit}\n'
output += f' cmd = {command}\n' output += f' cmd = {command}\n'
if pool:
output += f' pool = {pool}\n'
return target return target

View File

@ -54,6 +54,13 @@ DEPLOY_ITEMS += [
Alias('site', ' '.join(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', ' '.join([
Alias('publish-esp32', ' '.join([ Alias('publish-esp32', ' '.join([
Publish('publish-esp32-rev', Publish('publish-esp32-rev',

View File

@ -85,7 +85,7 @@ limitations under the License.
<li>Copy ueforth-pico-ice.uf2 to the mounted drive.</li> <li>Copy ueforth-pico-ice.uf2 to the mounted drive.</li>
</ul> </ul>
<br/> <br/>
<img src="https://pico-ice.tinyvision.ai/images/pico_ice_reset_button.jpg" width="300" height="auto"> <img src="https://pico-ice.tinyvision.ai/pico_ice_reset_button.jpg" width="300" height="auto">
<br/> <br/>
<a href="https://pico-ice.tinyvision.ai/programming_the_mcu.html">See detailed instructions for MCU programming</a> <a href="https://pico-ice.tinyvision.ai/programming_the_mcu.html">See detailed instructions for MCU programming</a>
</p> </p>