Files
blockly/.github/workflows/appengine_deploy.yml
Maribeth Moffatt 6bdfac5493 chore: set up blockly to be a monorepo (#9575)
* chore(monorepo): move all blockly files to packages/blockly

* chore(monorepo): add root package.json and update gitignores

* chore(monorepo): update scripts and github workflows

* chore(monorepo): only try the native release for closure compiler

chore: add debug info to build script

chore: update google-closure-compiler

chore: remove debug info
2026-01-20 16:07:02 -05:00

56 lines
1.5 KiB
YAML

# Workflow that prepares files and deploys to appengine
name: Deploy to App Engine
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
# When running manually this checks out the master branch.
- uses: actions/checkout@v5
- name: Prepare demo files
# Install all dependencies, then copy all the files needed for demos.
run: |
cd packages/blockly
npm install
npm run prepareDemos
- name: Upload
uses: actions/upload-artifact@v5
with:
name: appengine_files
path: _deploy/
deploy:
name: Deploy
runs-on: ubuntu-latest
# The prepare step must succeed for this step to run.
needs: prepare
steps:
- name: Download prepared files
uses: actions/download-artifact@v6
with:
name: appengine_files
path: _deploy/
- name: Deploy to App Engine
uses: google-github-actions/deploy-appengine@v3.0.1
# For parameters see:
# https://github.com/google-github-actions/deploy-appengine#inputs
with:
working_directory: _deploy/
deliverables: app.yaml
project_id: ${{ secrets.GCP_PROJECT }}
credentials: ${{ secrets.GCP_SA_KEY }}
promote: false
version: vtest