Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
d308ae7fb6 | |||
c8ddc72744 | |||
1150f56221 | |||
2dfb736019 | |||
434683954a | |||
0baadf9c61 | |||
036e3023ad | |||
abcc7fa481 |
3 changed files with 20 additions and 31 deletions
|
@ -1,29 +0,0 @@
|
|||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
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
|
||||
token: ${{ secrets.WRITE_TOKEN }}
|
||||
tag: v1.0.1
|
||||
release-dir: test/
|
||||
release-notes: "MY RELEASE NOTES: blabla"
|
||||
sha: "${{ github.sha }}"
|
|
@ -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
|
||||
|
|
18
.forgejo/workflows/update_weekly.yml
Normal file
18
.forgejo/workflows/update_weekly.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue