add landcover styling [#154] (#331) #492
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: Build App | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build_app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'app/.nvmrc' | |
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env | |
- name: Check styles | |
run: npm ci && npm run tsc && npm run check | |
working-directory: styles | |
- run: npm ci && npm run tsc && npm run check && npm run build | |
working-directory: app | |
- name: Generate styles typedoc | |
run: npx typedoc src/index.ts --out ../app/dist/typedoc | |
working-directory: styles | |
- run: python .github/check_examples.py | |
- uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./app/dist | |
force_orphan: true | |
cname: maps.protomaps.com |