generated from opengeos/solara-template
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 977 Bytes
/
compute.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
name: Compute COGs
on:
#schedule:
# - cron: '0 23 * * *'
workflow_dispatch:
push:
paths: ['*fire.py', '.github/workflows/compute.yml']
jobs:
compute:
runs-on: ubuntu-latest
container:
image: ghcr.io/boettiger-lab/solara-geospatial:latest
options: --user root
steps:
- name: checkout
uses: actions/checkout@v3
- name: compute
run: python fire.py
- name: push
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git clone https://huggingface.co/datasets/cboettig/solara-data ~/solara-data
cp *.tif ~/solara-data
cd ~/solara-data
git config user.name github-actions
git config user.email [email protected]
git lfs track "*.tif"
git add *.tif
git commit -a -m "update data" || echo "nothing to commit"
git push https://cboettig:[email protected]/datasets/cboettig/solara-data main