Skip to content

Document renderGeojson #77

Document renderGeojson

Document renderGeojson #77

Workflow file for this run

name: Deploy demo
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.3.0
- name: Build web app
run: |
wasm-pack build --release --target web route-snapper
cp route-snapper/lib.js route-snapper/pkg
wasm-pack build --release --target web osm-to-route-snapper
mkdir -p publish/route-snapper
mkdir -p publish/osm-to-route-snapper
cp examples/*.html examples/southwark.bin publish
cp -Rv route-snapper/pkg publish/route-snapper
cp -Rv osm-to-route-snapper/pkg publish/osm-to-route-snapper/
rm -f publish/route-snapper/pkg/.gitignore
rm -f publish/osm-to-route-snapper/pkg/.gitignore
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./publish/