11name : MakeCode Arcade Release
22
3- on :
3+ on :
44 release :
55 types :
66 - created
77jobs :
88 build :
9-
109 runs-on : ubuntu-latest
11-
12- strategy :
13- matrix :
14- node-version : [8.x]
10+ permissions :
11+ contents : write # Required for gh release upload
1512
1613 steps :
17- - uses : actions/checkout@v1
18- - name : install node.js ${{ matrix.node-version }}
19- uses : actions/setup-node@v1
14+ - uses : actions/checkout@v5
15+ - name : install node.js 22
16+ uses : actions/setup-node@v6
2017 with :
21- node-version : ${{ matrix.node-version }}
18+ node-version : 22
19+
2220 - name : install makecode
2321 run : |
2422 npm install -g pxt
2523 pxt target arcade
24+
2625 - name : build js
2726 run : |
2827 pxt clean
2928 pxt install
3029 pxt build --cloud
30+
3131 - name : build D51
3232 continue-on-error : true
3333 run : |
3434 pxt clean
3535 pxt install --hw samd51
3636 pxt build --hw samd51 --cloud
3737 cp ./built/binary.uf2 binary-d51.uf2
38+
3839 - name : build F4
3940 continue-on-error : true
4041 run : |
4142 pxt clean
4243 pxt install --hw stm32f401
4344 pxt build --hw stm32f401 --cloud
4445 cp ./built/binary.uf2 binary-f4.uf2
46+
4547 - name : build P0
4648 continue-on-error : true
4749 run : |
4850 pxt clean
4951 pxt install --hw rpi
5052 pxt build --hw rpi --cloud
5153 cp ./built/binary.uf2 binary-p0.uf2
54+
5255 - name : bundle all
5356 run : |
54- cat binary-*.uf2 > built/arcade.uf2
55- - name : upload bundled
56- uses : actions/upload-release-asset@v1.0.1
57+ cat binary-*.uf2 > ./ built/arcade.uf2
58+
59+ - name : Upload Release Assets
5760 env :
5861 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59- with :
60- upload_url : ${{ github.event.release.upload_url }}
61- asset_path : ./built/arcade.uf2
62- asset_name : arcade.uf2
63- asset_content_type : application/octet-stream
62+ run : |
63+ TAG_NAME=${GITHUB_REF#refs/tags/}
64+ gh release upload $TAG_NAME \
65+ built/arcade.uf2 \
66+ binary-d51.uf2 \
67+ binary-f4.uf2 \
68+ binary-p0.uf2 \
69+ --clobber
0 commit comments