1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- node-version : [18.13 .0]
17+ node-version : [20.9 .0]
1818
1919 steps :
2020 - name : ' Checkout Github Action'
@@ -38,47 +38,26 @@ jobs:
3838 - name : npm install main blockly
3939 run : |
4040 cd src
41- cd react_new_app
42- cd my-app
43- 41+ cd blockly10
4442 npm i
4543
4644 - name : build docs main blockly
4745 run : |
4846 cd src
49- cd react_new_app
50- cd docs
51- 47+ cd blockly10
5248 npm i
5349 npm run build
54- rm -rf ${{github.workspace}}/src/react_new_app/docs/build/img/*
55- echo 'verify build docs main blockly'
56- ls -l ${{github.workspace}}/src/react_new_app/docs/build
5750
58- - name : build docs LocalAPI
59- run : |
60- cd src
61- cd Local
62- cd docs
63- 64- npm i
65- npm run build
66- rm -rf ${{github.workspace}}/src/Local/docs/build/img/*
67- echo 'verify build docs main blockly'
68- ls -l ${{github.workspace}}/src/Local/docs/build
6951
7052 - name : copy docs to BlocklyMain
7153 run : |
72- rm -rf src/react_new_app/my-app/public/help
73- mkdir src/react_new_app/my-app/public/help
74- cp -R src/react_new_app/docs/build/* src/react_new_app/my-app/public/help/
54+ cp -R src/blockly10/build/* src/react_new_app/my-app/public/help/
7555
7656
7757 - name : build with root
7858 run : |
7959 cd src
80- cd react_new_app
81- cd my-app
60+ cd blockly10
8261 rm public/version.txt
8362 echo "${{github.ref_name}}" > public/version.txt
8463 npm run build
@@ -94,55 +73,10 @@ jobs:
9473 uses : actions/upload-artifact@v2
9574 with :
9675 name : releaseBlocklyAutomation
97- path : ' src/react_new_app/my-app /build/*'
76+ path : ' src/blockly10 /build/*'
9877 retention-days : 3
9978
100- - name : Archive api docs
101- uses : actions/upload-artifact@v2
102- with :
103- name : localAPIDocs
104- path : ' src/Local/docs/build/*'
105- retention-days : 3
106-
107-
108-
109- - name : Archive Release VisualAPI
110- uses : thedoctor0/zip-release@master
111- with :
112- type : ' zip'
113- filename : ' releaseBlocklyAutomation.zip'
114- path : ' ${{github.workspace}}/src/react_new_app/my-app/build/*'
115- directory : ' ${{github.workspace}}/src/react_new_app/my-app/build/'
116- exclusions : ' *.git* /*node_modules/* .editorconfig'
117-
118- - name : Archive Release LocalAPI Docs
119- uses : thedoctor0/zip-release@master
120- with :
121- type : ' zip'
122- filename : ' releaseLocalAPIDocs.zip'
123- path : ' ${{github.workspace}}/src/Local/docs/build/*'
124- directory : ' ${{github.workspace}}/src/Local/docs/build/'
125- exclusions : ' *.git* /*node_modules/* .editorconfig'
126-
127- - name : find release
128- run : |
129- find ${{github.workspace}} -type f -name "*.zip"
130-
131-
132-
133- - name : ReleaseVisualAPI
134- uses : softprops/action-gh-release@v1
135- with :
136- body : " Latest Release for Manual Install"
137- generate_release_notes : true
138- draft : false
139- prerelease : false
140- files : |
141- ${{github.workspace}}/src/Local/docs/build/releaseLocalAPIDocs.zip
142- version.txt
143- # tag: v${{ env.GITHUB_SHA }}
144- # tag_name: v${{ env.GITHUB_SHA }}
145-
79+
14680 - name : ReleaseLocalAPI
14781 uses : softprops/action-gh-release@v1
14882 with :
15185 draft : false
15286 prerelease : false
15387 files : |
154- ${{github.workspace}}/src/react_new_app/my-app /build/releaseBlocklyAutomation.zip
88+ ${{github.workspace}}/src/blockly10 /build/releaseBlocklyAutomation.zip
15589 version.txt
15690
15791
0 commit comments