diff --git a/.github/workflows/workflow_release.yml b/.github/workflows/workflow_release.yml index 75299410..e5cf53d3 100644 --- a/.github/workflows/workflow_release.yml +++ b/.github/workflows/workflow_release.yml @@ -342,24 +342,33 @@ jobs: run: git submodule update --init - name: bootstrap run: python3 script/bootstrap.py -p js - - name: setup + - name: setup js module + run: python3 script/setup.py -p js -o -v -m + - name: build js + run: python3 script/build.py -p js -o -v + - name: copy files + shell: bash + run: | + mkdir src/build/javascript/artifacts + mv src/build/javascript/rhino3dm.js src/build/javascript/artifacts/rhino3dm.module.js + cp package.json src/build/javascript/artifacts + cp docs/javascript/RHINO3DM.JS.md src/build/javascript/artifacts/README.md + cp src/js/rhino3dm.d.ts src/build/javascript/artifacts/rhino3dm.d.ts + - name: setup js run: python3 script/setup.py -p js -o -v - name: build js run: python3 script/build.py -p js -o -v - name: copy files shell: bash run: | - cp package.json src/build/javascript/artifacts_js - cp docs/javascript/RHINO3DM.JS.md src/build/javascript/artifacts_js/README.md - cp src/js/rhino3dm.release.js src/build/javascript/artifacts_js/rhino3dm.js - cp src/js/rhino3dm.release.min.js src/build/javascript/artifacts_js/rhino3dm.min.js - cp src/js/rhino3dm.release.module.js src/build/javascript/artifacts_js/rhino3dm.module.js - cp src/js/rhino3dm.release.module.min.js src/build/javascript/artifacts_js/rhino3dm.module.min.js - cp src/js/rhino3dm.d.ts src/build/javascript/artifacts_js/rhino3dm.d.ts + mv src/build/javascript/rhino3dm.js src/build/javascript/artifacts + mv src/build/javascript/artifacts_js/rhino3dm.wasm src/build/javascript/artifacts + ls src/build/javascript/artifacts + #todo - minify - name: artifacts uses: actions/upload-artifact@v4.3.1 with: - path: src/build/javascript/artifacts_js + path: src/build/javascript/artifacts name: rhino3dm.js retention-days: ${{ env.RETENTION_DAYS }}