Skip to content

Commit

Permalink
update workflow release to build js module
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Jul 18, 2024
1 parent cc827d5 commit 85e48df
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/workflow_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 85e48df

Please sign in to comment.