Download protomaps from _yesterday_, remove test files
This commit is contained in:
parent
2dfb736019
commit
1150f56221
3 changed files with 1 additions and 29 deletions
|
|
@ -1,27 +0,0 @@
|
||||||
on:
|
|
||||||
push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: [ debian ]
|
|
||||||
steps:
|
|
||||||
- uses: https://source.mapcomplete.org/actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Print root directory
|
|
||||||
shell: bash
|
|
||||||
run: ls /
|
|
||||||
|
|
||||||
- name: create dummy file
|
|
||||||
run: |
|
|
||||||
date > date.txt
|
|
||||||
|
|
||||||
- name: push
|
|
||||||
run: |
|
|
||||||
git pull
|
|
||||||
git config user.name "Android file update bot"
|
|
||||||
git config user.email "info@mapcomplete.org"
|
|
||||||
date > date.txt
|
|
||||||
git add date.txt
|
|
||||||
git commit -m "Add files for release ${{ github.ref_name }}"
|
|
||||||
git tag "${{ github.ref_name }}"
|
|
||||||
git push --verbose --follow-tags
|
|
||||||
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
- uses: https://source.mapcomplete.org/actions/checkout@v4
|
- uses: https://source.mapcomplete.org/actions/checkout@v4
|
||||||
- name: Download the pmtile file
|
- name: Download the pmtile file
|
||||||
shell: bash
|
shell: bash
|
||||||
run: wget "https://build.protomaps.com/$(date +%Y%m%d).pmtiles" -O /data/planet-latest.pmtiles.part
|
run: wget "https://build.protomaps.com/$(date -d "yesterday" +%Y%m%d).pmtiles" -O /data/planet-latest.pmtiles.part
|
||||||
- name: Move the pmtile file
|
- name: Move the pmtile file
|
||||||
shell: bash
|
shell: bash
|
||||||
run: mv -f /data/planet-latest.pmtiles.part /data/planet-latest.pmtiles
|
run: mv -f /data/planet-latest.pmtiles.part /data/planet-latest.pmtiles
|
||||||
|
|
|
||||||
1
date.txt
1
date.txt
|
|
@ -1 +0,0 @@
|
||||||
Tue Jun 17 11:34:50 UTC 2025
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue