Skip to content

Update tile action

Update tile action #30

name: Tiles
on: push
jobs:
tiles:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tippecanoe
run: |
git clone https://github.com/mapbox/tippecanoe.git
cd tippecanoe
make -j
sudo make install
- name: Copy GeoJSON files
run: |
sshpass -p "${{ secrets.PASSWORD }}" rsync -r -e "ssh -o StrictHostKeyChecking=no -p${{ secrets.PORT }}" ${{ secrets.USER }}@${{ secrets.HOST }}:geojson/ $HOME/geojson
- name: Create tiles
run: |
cd $HOME
. $GITHUB_WORKSPACE/src/tiles/ground.sh
. $GITHUB_WORKSPACE/src/tiles/construction.sh
. $GITHUB_WORKSPACE/src/tiles/communication.sh
. $GITHUB_WORKSPACE/src/tiles/text.sh
- name: Save Tiles
run: |
sshpass -p "${{ secrets.PASSWORD }}" rsync -r -e "ssh -o StrictHostKeyChecking=no -p${{ secrets.PORT }}" $HOME/sweden_map_tiles/ ${{ secrets.USER }}@${{ secrets.HOST }}:sweden_map_tiles