Compare commits

...

7 commits
v1.0.2 ... main

Author SHA1 Message Date
d308ae7fb6 Add weekly 'createTiles' step 2025-09-02 01:57:38 +02:00
c8ddc72744 Print progress to log 2025-07-07 02:06:27 +02:00
1150f56221 Download protomaps from _yesterday_, remove test files 2025-07-07 01:16:50 +02:00
2dfb736019 Add files for release main 2025-06-17 11:34:50 +00:00
434683954a Attempt to push
All checks were successful
/ test (push) Successful in 3s
2025-06-17 13:34:45 +02:00
0baadf9c61 Attempt to push
Some checks failed
/ test (push) Failing after 2s
2025-06-17 13:32:39 +02:00
036e3023ad RM test files 2025-06-17 00:22:07 +02:00
3 changed files with 20 additions and 32 deletions

View file

@ -1,30 +0,0 @@
on:
push:
tags: 'v*'
jobs:
test-release:
runs-on: [ debian ]
steps:
- uses: https://source.mapcomplete.org/actions/checkout@v4
- name: Print root directory
shell: bash
run: ls /
- name: create dummy file
shell: bash
run: |
mkdir test
echo "Hello world!" > test/test.txt
- uses: actions/forgejo-release@v2.6.0
with:
direction: upload
url: https://source.mapcomplete.org
repo: MapComplete/planet-file-updater
release-dir: test/
release-notes: "Release version ${{ github.ref_name }}"
sha: "${{ github.sha }}"
tag: "${{ github.ref_name }}"
token: ${{ secrets.WRITE_TOKEN }}

View file

@ -18,7 +18,7 @@ jobs:
shell: bash
run: |
# https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf
wget https://download.openplanetdata.com/osm/planet/pbf/planet-latest.osm.pbf -O /data/planet-latest.osm.pbf.part
wget --progress=dot:giga https://download.openplanetdata.com/osm/planet/pbf/planet-latest.osm.pbf -O /data/planet-latest.osm.pbf.part
- name: Move the planet file
@ -44,7 +44,7 @@ jobs:
- uses: https://source.mapcomplete.org/actions/checkout@v4
- name: Download the pmtile file
shell: bash
run: wget "https://build.protomaps.com/$(date +%Y%m%d).pmtiles" -O /data/planet-latest.pmtiles.part
run: wget --progress=dot:giga "https://build.protomaps.com/$(date -d "yesterday" +%Y%m%d).pmtiles" -O /data/planet-latest.pmtiles.part
- name: Move the pmtile file
shell: bash
run: mv -f /data/planet-latest.pmtiles.part /data/planet-latest.pmtiles

View file

@ -0,0 +1,18 @@
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 0"
jobs:
create_archive_tiles:
runs-on: [ osm-cache ]
steps:
- uses: https://source.mapcomplete.org/actions/checkout@v4
- name: Print data
shell: bash
run: ls -h /data/planet-latest.pmtiles
- name: Create new tiles
shell: bash
run: /data/generateTiles.sh # generated by the script in the MapComplete repo