-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.3 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Generate and deploy IDF data
on:
schedule:
- cron: '0 18 * * 5'
push:
branches-ignore:
- 'gh-pages'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.12]
steps:
- uses: actions/checkout@v2
- name: Setup python version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install osmium
run: |
sudo apt-get install osmium-tool
- name: Install xsv
run: |
wget --quiet https://github.com/BurntSushi/xsv/releases/download/0.13.0/xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz
tar -zxvf xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz
pwd >> $GITHUB_PATH
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies && generate IDF data
env:
Osmose_idf_auth: ${{ secrets.Osmose_idf_auth }}
run: |
cd ci && ./install.sh
cd ..
./run_all.sh
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .