Skip to content

Commit be0344c

Browse files
authored
Update gh pages deployment for screen reader experiment (test 3) (#3)
* feat: Deploy GH pages w/ screen reader experiment. * fix: Use correct branch for plugin. * feat: Introduce initial screen reader support (experimental) (RaspberryPiFoundation#684) Fixes part of RaspberryPiFoundation/blockly#3370 Fixes part of RaspberryPiFoundation/blockly#9283 This PR introduces the plugin corresponding changes needed by RaspberryPiFoundation/blockly#9280. In particular, this: - Introduces CI workflow updates so that "tip-of-tree" is redefined as the corresponding experimental branch in core for screen reader support (to ensure CI passes here for changes that happen there). - Removes some access error overrides since the corresponding field was made public in the core PR (which is the root of the CI failures here). - Introduces some general instructions in the navigation plugin playground for folks testing Blockly with a screen reader (and points to RaspberryPiFoundation#673 for discussion). **Important**: Note that this PR's changes will NOT be merged into the `main` branch as-is. They will be reconsidered entirely (and likely largely reimplemented) separately from this experimental branch and submitted as a separate, future review for `main`. See RaspberryPiFoundation/blockly#9280 and Fixes part of RaspberryPiFoundation/blockly#9283 for more specifics on why the separate branch thing is being set up this way. * Revert "feat: Introduce initial screen reader support (experimental) (RaspberryPiFoundation#684)" This reverts commit 458e4f8.
1 parent 3696e2b commit be0344c

File tree

1 file changed

+48
-10
lines changed

1 file changed

+48
-10
lines changed

.github/workflows/pages.yml

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
name: Deploy static content to Pages
33

44
on:
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.
1315
permissions:
1416
contents: read
1517
pages: write
@@ -26,24 +28,37 @@ 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+
ref: add-screen-reader-support-experimental
55+
4156
- name: Setup Node
4257
uses: actions/setup-node@v4
4358
with:
4459
node-version: 20.x
4560

46-
- name: Build blockly
61+
- name: Build tip-of-tree core Blockly
4762
run: |
4863
cd blockly
4964
npm ci
@@ -52,19 +67,42 @@ jobs:
5267
npm link
5368
cd ../..
5469
55-
- name: Build blockly-keyboard-experimentation
70+
- name: Build tip-of-tree blockly-keyboard-experimentation
5671
run: |
5772
cd blockly-keyboard-experimentation
5873
npm ci
5974
npm link blockly
6075
npm run ghpages
76+
mkdir ../ghpages
77+
cp -r build/* ../ghpages/
78+
cd ..
79+
80+
- name: Build add-screen-reader-support-experimental core Blockly
81+
run: |
82+
cd blockly/dist
83+
npm unlink -g
84+
cd ../../blockly-add-screen-reader-support-experimental
85+
npm ci
86+
npm run package
87+
cd dist
88+
npm link
89+
cd ../..
90+
91+
- name: Build add-screen-reader-support-experimental blockly-keyboard-experimentation
92+
run: |
93+
cd blockly-keyboard-experimentation-add-screen-reader-support-experimental
94+
npm ci
95+
npm link blockly
96+
npm run ghpages
97+
mkdir ../ghpages/screenreader
98+
cp -r build/* ../ghpages/screenreader/
6199
cd ..
62100
63101
- name: Upload artifact
64102
uses: actions/upload-pages-artifact@v3
65103
with:
66-
# Upload build folder
67-
path: './blockly-keyboard-experimentation/build'
104+
# Upload configured GH pages site files.
105+
path: './ghpages'
68106

69107
deploy:
70108
environment:

0 commit comments

Comments
 (0)