See if a types field helps TS check problems elsewhere #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
wasm-pack build --release --target web osm-to-route-snapper | |
wasm-pack build --release --target web geojson-to-route-snapper | |
cp route-snapper/lib.js route-snapper/pkg | |
mkdir -p publish/route-snapper | |
mkdir -p publish/osm-to-route-snapper | |
mkdir -p publish/geojson-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/ | |
cp -Rv geojson-to-route-snapper/pkg publish/geojson-to-route-snapper/ | |
rm -f publish/route-snapper/pkg/.gitignore | |
rm -f publish/osm-to-route-snapper/pkg/.gitignore | |
rm -f publish/geojson-to-route-snapper/pkg/.gitignore | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./publish/ |