Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Try to auto-deploy the JS editor app alongside the yew app. #240
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 8, 2022
1 parent 997d5ed commit 8e962a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ jobs:
- name: Build web app
run: trunk --config Release.toml build

- name: Install wasm-pack
uses: jetli/[email protected]

- name: Build lane editor app
run: |
cd web_editor
wasm-pack build --release --target web ../osm2lanes-npm
# Make a full copy of what we'll publish, dereferencing symlinks
mkdir editor
cp -RLv assets/ js/ *.html *.css editor
# wasm-pack generates this file, but it'll prevent the action below from working
rm -fv editor/js/osm2lanes-npm/.gitignore
mv editor ../dist
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 8e962a8

Please sign in to comment.