Skip to content

Manually build packs #78

Manually build packs

Manually build packs #78

name: Manually build packs
on:
workflow_dispatch:
inputs:
packs:
description: |
Space-separated list of pack IDs you want to build,
e.g. "us-ca-oakland us-ca-la"
required: true
type: string
use_pmtiles:
description: Output PMTiles instead of MBTiles
required: false
type: boolean
jobs:
list-packs:
name: List packs
runs-on: ubuntu-latest
if: ${{ inputs.packs }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
# Set the matrix output to a JSON array from a space-separated string
# from the workflow_dispatch input
- id: set-matrix
run: |
python -c "import sys, json; print('matrix='+json.dumps('${{ inputs.packs }}'.split()))" >> $GITHUB_OUTPUT
build-packs:
name: Build pack
needs: list-packs
strategy:
fail-fast: false
matrix:
pack: ${{ fromJson(needs.list-packs.outputs.matrix) }}
uses: kueda/underfoot/.github/workflows/build-pack.yml@pmtiles
with:
pack: ${{ matrix.pack }}
use_pmtiles: ${{ inputs.use_pmtiles }}
secrets: inherit