This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Initial commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload CSVs to Dune on Commit | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'uploads/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Log directory structure | |
run: | | |
pwd | |
ls -R | |
- name: pip requirements | |
run: pip install -r requirements.txt | |
- name: Update all queries from Dune, by overwriting queries with repo query text | |
env: | |
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY }} | |
run: python -u scripts/upload_to_dune.py |