stats export #29629
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: stats export | |
on: | |
schedule: | |
- cron: '*/30 * * * *' | |
jobs: | |
export_stats: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- run: npm i | |
- run: pip install -r requirements.txt | |
- run: python src/scripts/stats.py | |
env: | |
INFURA_KEY: ${{ secrets.INFURA_KEY }} | |
- run: npm run upload | |
env: | |
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }} | |
FLEEK_API_SECRET: ${{ secrets.FLEEK_API_SECRET }} |