Skip to content

ci: specify path when checking out tippecanoe #4

ci: specify path when checking out tippecanoe

ci: specify path when checking out tippecanoe #4

Workflow file for this run

name: Upload flugfeld to S3
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: Gr1N/setup-poetry@v8
- name: Install dependencies
run: |
poetry install
- name: Download data & build geojson
env:
X_OPENAIP_CLIENT_ID: ${{ secrets.X_OPENAIP_CLIENT_ID }}
run: poetry run python -m src.download
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Copy geojson to S3
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
run: |
aws s3 cp airport.geojson s3://$AWS_S3_BUCKET/airport.geojson
- name: Checkout tippecanoe
uses: actions/checkout@v4
with:
repository: mapbox/tippecanoe
path: tippecanoe
- name: Build tippecanoe
run: |
cd tippecanoe
make -j
make install
cd ..
- name: Build mbtiles
run: |
tippecanoe -Z3 -z14 -f -r1 -pk -pf -y id -y openaip_id -y name -y reign -y elevation -y runway_rotation -y lng -y lat -J airport_filter.json -o airport.mbtiles airport.geojson
- name: Copy mbtiles to S3
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_TILE_BUCKET }}
run: |
aws s3 cp airport.mbtiles s3://$AWS_S3_TILE_BUCKET/airport.mbtiles