ci: github actions for tileserver #8
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tiles-build: | |
name: Tiles | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./tiles | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: './tiles/.nvmrc' | |
- name: Run npm install | |
run: npm ci | |
- name: Run tsc | |
run: npm run check | |
if: ${{ !cancelled() }} | |
- name: Wrangler build | |
run: npm run build | |
if: ${{ !cancelled() }} | |
- name: Upload build output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tiles-build-output | |
path: tiles/dist | |
retention-days: 14 | |
if: ${{ !cancelled() }} | |