22name : Deploy static content to Pages
33
44on :
5- # Runs on pushes targeting the default branch
5+ # Runs on pushes targeting the default and experimentation branches.
66 push :
7- branches : ['main']
7+ branches :
8+ - main
9+ - add-screen-reader-support-experimental
810
9- # Allows you to run this workflow manually from the Actions tab
11+ # Allows the workflow to be manually run from the Actions tab.
1012 workflow_dispatch :
1113
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages.
1315permissions :
1416 contents : read
1517 pages : write
@@ -26,24 +28,36 @@ jobs:
2628 build :
2729 runs-on : ubuntu-latest
2830 steps :
29- - name : Checkout blockly
31+ - name : Checkout tip-of-tree core Blockly
3032 uses : actions/checkout@v4
3133 with :
3234 path : blockly
3335 repository : google/blockly
3436 ref : develop
3537
36- - name : Checkout blockly-keyboard-experimentation
38+ - name : Checkout add-screen-reader-support-experimental core Blockly
39+ uses : actions/checkout@v4
40+ with :
41+ path : blockly-add-screen-reader-support-experimental
42+ repository : google/blockly
43+ ref : add-screen-reader-support-experimental
44+
45+ - name : Checkout tip-of-tree blockly-keyboard-experimentation
3746 uses : actions/checkout@v4
3847 with :
3948 path : blockly-keyboard-experimentation
4049
50+ - name : Checkout add-screen-reader-support-experimental blockly-keyboard-experimentation
51+ uses : actions/checkout@v4
52+ with :
53+ path : blockly-keyboard-experimentation-add-screen-reader-support-experimental
54+
4155 - name : Setup Node
4256 uses : actions/setup-node@v4
4357 with :
4458 node-version : 20.x
4559
46- - name : Build blockly
60+ - name : Build tip-of-tree core Blockly
4761 run : |
4862 cd blockly
4963 npm ci
@@ -52,19 +66,42 @@ jobs:
5266 npm link
5367 cd ../..
5468
55- - name : Build blockly-keyboard-experimentation
69+ - name : Build tip-of-tree blockly-keyboard-experimentation
5670 run : |
5771 cd blockly-keyboard-experimentation
5872 npm ci
5973 npm link blockly
6074 npm run ghpages
75+ mkdir ../ghpages
76+ cp -r build/* ../ghpages/
77+ cd ..
78+
79+ - name : Build add-screen-reader-support-experimental core Blockly
80+ run : |
81+ cd blockly/dist
82+ npm unlink -g
83+ cd ../../blockly-add-screen-reader-support-experimental
84+ npm ci
85+ npm run package
86+ cd dist
87+ npm link
88+ cd ../..
89+
90+ - name : Build add-screen-reader-support-experimental blockly-keyboard-experimentation
91+ run : |
92+ cd blockly-keyboard-experimentation-add-screen-reader-support-experimental
93+ npm ci
94+ npm link blockly
95+ npm run ghpages
96+ mkdir ../ghpages/screenreader
97+ cp -r build/* ../ghpages/screenreader/
6198 cd ..
6299
63100 - name : Upload artifact
64101 uses : actions/upload-pages-artifact@v3
65102 with :
66- # Upload build folder
67- path : ' ./blockly-keyboard-experimentation/build '
103+ # Upload configured GH pages site files.
104+ path : ' ./ghpages '
68105
69106 deploy :
70107 environment :
0 commit comments