-
-
Notifications
You must be signed in to change notification settings - Fork 56
33 lines (31 loc) · 976 Bytes
/
app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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: 18.x
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
- name: Check styles
run: npm install && npx tsc --noEmit
working-directory: styles
- run: npm install && npx tsc --noEmit && npm run prettier-check && npx vite build
working-directory: app
- 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