Skip to content

Commit

Permalink
Wire up GH actions to auto-deploy the new web apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jul 11, 2023
1 parent ef97f6a commit c57401b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy web

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- name: Build web app
run: |
cd web
wasm-pack build --release --target web ../osm2streets-js
npm ci
npm run build --if-present
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist/

0 comments on commit c57401b

Please sign in to comment.