Skip to content

Commit d968fed

Browse files
authored
chore(build): Build ghpages against tip-of-develop (#539)
1 parent 5e131d9 commit d968fed

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/pages.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,46 @@ jobs:
2626
build:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: Checkout
29+
- name: Checkout blockly
3030
uses: actions/checkout@v4
31+
with:
32+
path: blockly
33+
repository: google/blockly
34+
ref: develop
35+
36+
- name: Checkout blockly-keyboard-experimentation
37+
uses: actions/checkout@v4
38+
with:
39+
path: blockly-keyboard-experimentation
40+
3141
- name: Setup Node
3242
uses: actions/setup-node@v4
3343
with:
34-
node-version: latest
35-
cache: 'npm'
36-
- run: npm ci
37-
- run: npm run ghpages
44+
node-version: 20.x
45+
46+
- name: Build blockly
47+
run: |
48+
cd blockly
49+
npm ci
50+
npm run package
51+
cd dist
52+
npm link
53+
cd ../..
54+
55+
- name: Build blockly-keyboard-experimentation
56+
run: |
57+
cd blockly-keyboard-experimentation
58+
npm ci
59+
npm link blockly
60+
npm run ghpages
61+
cd ..
62+
3863
- name: Upload artifact
3964
uses: actions/upload-pages-artifact@v3
4065
with:
4166
# Upload build folder
42-
path: './dist'
67+
path: './blockly-keyboard-experimentation/dist'
68+
4369
deploy:
4470
environment:
4571
name: github-pages

0 commit comments

Comments
 (0)