Skip to content

refactor: improve filter, fix tags #12

refactor: improve filter, fix tags

refactor: improve filter, fix tags #12

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Let a running deploy finish; queue at most one more.
concurrency:
group: pages
cancel-in-progress: false
jobs:
check:
name: ✅ Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
- uses: voidzero-dev/setup-vp@v1
with:
node-version: "lts"
- name: Install dependencies
run: vp i
# Formatting, linting, and that the exports still match the KML.
- name: Check
run: vp check
- name: Verify exports are up to date
run: |
vp run convert
git diff --exit-code public/alpine-mtb-map.gpx public/alpine-mtb-map.geojson
deploy:
name: ⚡️ Deploy to GitHub Pages
needs: check
# Pull requests get the checks but must not publish.
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v7.0.0
- uses: voidzero-dev/setup-vp@v1
with:
node-version: "lts"
- name: Setup Pages
uses: actions/configure-pages@v6.0.0
- name: Install dependencies
run: vp i
- name: Build website
run: vp build
- uses: actions/upload-pages-artifact@v5.0.0
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5.0.0