Expand workflows for testing. #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Simple workflow for deploying static content to GitHub Pages | |
| name: Deploy static content to Pages | |
| on: | |
| # Runs on pushes targeting the default and experimentation branches. | |
| push: | |
| branches: | |
| - main | |
| - add-screen-reader-support-experimental | |
| # Allows the workflow to be manually run from the Actions tab. | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages. | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
| concurrency: | |
| group: 'pages' | |
| cancel-in-progress: false | |
| jobs: | |
| # Single deploy job since we're just deploying | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tip-of-tree core Blockly | |
| uses: actions/checkout@v4 | |
| with: | |
| path: blockly | |
| repository: google/blockly | |
| ref: develop | |
| - name: Checkout add-screen-reader-support-experimental core Blockly | |
| uses: actions/checkout@v4 | |
| with: | |
| path: blockly-add-screen-reader-support-experimental | |
| repository: google/blockly | |
| ref: add-screen-reader-support-experimental | |
| - name: Checkout tip-of-tree blockly-keyboard-experimentation | |
| uses: actions/checkout@v4 | |
| with: | |
| path: blockly-keyboard-experimentation | |
| - name: Checkout add-screen-reader-support-experimental blockly-keyboard-experimentation | |
| uses: actions/checkout@v4 | |
| with: | |
| path: blockly-keyboard-experimentation-add-screen-reader-support-experimental | |
| ref: add-screen-reader-support-experimental | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Build tip-of-tree core Blockly step 1/6 | |
| run: | | |
| cd blockly | |
| - name: Build tip-of-tree core Blockly step 2/6 | |
| run: | | |
| npm ci | |
| - name: Build tip-of-tree core Blockly step 3/6 | |
| run: | | |
| npm run package | |
| - name: Build tip-of-tree core Blockly step 4/6 | |
| run: | | |
| cd dist | |
| - name: Build tip-of-tree core Blockly step 5/6 | |
| run: | | |
| npm link | |
| - name: Build tip-of-tree core Blockly step 6/6 | |
| run: | | |
| cd ../.. | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 1/7 | |
| run: | | |
| cd blockly-keyboard-experimentation | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 2/7 | |
| run: | | |
| npm ci | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 3/7 | |
| run: | | |
| npm link blockly | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 4/7 | |
| run: | | |
| npm run ghpages | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 5/7 | |
| run: | | |
| mkdir ../ghpages | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 6/7 | |
| run: | | |
| cp -r build/* ../ghpages/ | |
| - name: Build tip-of-tree blockly-keyboard-experimentation step 7/7 | |
| run: | | |
| cd .. | |
| - name: Build add-screen-reader-support-experimental core Blockly step 1/8 | |
| run: | | |
| cd blockly/dist | |
| - name: Build add-screen-reader-support-experimental core Blockly step 2/8 | |
| run: | | |
| npm unlink -g | |
| - name: Build add-screen-reader-support-experimental core Blockly step 3/8 | |
| run: | | |
| cd ../../blockly-add-screen-reader-support-experimental | |
| - name: Build add-screen-reader-support-experimental core Blockly step 4/8 | |
| run: | | |
| npm ci | |
| - name: Build add-screen-reader-support-experimental core Blockly step 5/8 | |
| run: | | |
| npm run package | |
| - name: Build add-screen-reader-support-experimental core Blockly step 6/8 | |
| run: | | |
| cd dist | |
| - name: Build add-screen-reader-support-experimental core Blockly step 7/8 | |
| run: | | |
| npm link | |
| - name: Build add-screen-reader-support-experimental core Blockly step 8/8 | |
| run: | | |
| cd ../.. | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 1/7 | |
| run: | | |
| cd blockly-keyboard-experimentation-add-screen-reader-support-experimental | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 2/7 | |
| run: | | |
| npm ci | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 3/7 | |
| run: | | |
| npm link blockly | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 4/7 | |
| run: | | |
| npm run ghpages | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 5/7 | |
| run: | | |
| mkdir ../ghpages/screenreader | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 6/7 | |
| run: | | |
| cp -r build/* ../ghpages/screenreader/ | |
| - name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation step 7/7 | |
| run: | | |
| cd .. | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # Upload configured GH pages site files. | |
| path: './ghpages' | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |