build-main #41
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-main | |
run-name: build-main | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
# every day at midnight | |
- cron: 0 0 * * * | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
name: download and save data | |
steps: | |
- uses: actions/checkout@v3 | |
- run: apt install osmctools | |
- run: osmconvert ./chattanooga.xml ./chattanooga.pbf | |
- uses: systemed/[email protected] | |
with: | |
# Required, same to --input | |
input: ./chattanooga.xml | |
# Required, same to --output. Could be a directory or a .mbtiles files | |
output: ./chattanooga2.pmtiles | |
config: ./chattanooga-config.json | |
# Optional, same to --process | |
# If not being set, default to resources/process-openmaptiles.lua | |
# process: /path/to/lua | |
# Optional, other arguments | |
# If not being set, default to '--verbose' | |
# extra: --threads 0 | |
# extra: --bbox='-86.98844491281493,34.014883133571566,-82.9877549774713,36.99317452988294' | |
# - run: bash main.sh | |
- run: ls | |
# Commit all changed files back to the repository | |
# - uses: stefanzweifel/git-auto-commit-action@v5 |