-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 1.13 KB
/
tilemaker-exports.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
34
name: Build tilemaker exports
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
AREA: north-america
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Fetch supporting GeoJSON and QRank files
run: wget --progress=dot:giga https://github.com/hikeratlas/qrank/releases/download/latest/qrank.db
- name: Fetch PBF
run: wget --progress=dot:giga https://public.hikeratlas.com/pbfs/$AREA.pbf
- name: Export
env:
TILEMAKER: ${{ github.workspace }}/bin/docker-tilemaker
run: ./export/export-all $AREA.pbf
- name: Upload GeoJSON
env:
AWS_ENDPOINT_URL: https://ce5627cfc65c8b54d40bb91c0ba7298b.r2.cloudflarestorage.com
AWS_EC2_METADATA_DISABLED: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
FILE: parks.geojsonl
run: for x in *.geojsonl; do zstd -9 "$x"; aws s3 cp --no-progress "$x".zst s3://hikes-public/geojsonl/"$AREA"/"$x".zst; done