Skip to content

Add workflow file

Add workflow file #1

Workflow file for this run

name: Complile and upload datalake on AWS
on:
push:
branches: [ "main" ]
env:
AWS_REGION: eu-central-1
permissions:
contents: read
jobs:
deploy:
name: Compile and upload datalake on AWS
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Set up Python 3.7
uses: actions/setup-python@v3

Check failure on line 31 in .github/workflows/datalake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/datalake.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
with:
python-version: 3.7
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Compile
run: |
python build_assets.py
- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: 'ton-blockchain-public-datalake'
source_dir: 'output/assets.csv'
destination_dir: 'v1/ton-labels/csv/assets.csv'