Skip to content

Update README.md

Update README.md #37

name: Build an Image and Deploy a Prefect flow
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy_flow:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Login to GAR
uses: docker/login-action@v3
with:
registry: us-east1-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
- name: Prefect Auth
uses: PrefectHQ/actions-prefect-auth@v1
with:
prefect-api-key: ${{ secrets.PREFECT_API_KEY }}
prefect-workspace: ${{ secrets.PREFECT_WORKSPACE }}
- name: Authenticate DBT Core
run: 'echo "$KEYFILE" > ./dbt-service-account.json'
shell: bash
env:
KEYFILE: ${{ secrets.DBT_BIGQUERY_KEYFILE }}
- name: Run Prefect Deploy
uses: PrefectHQ/actions-prefect-deploy@v3
with:
deployment-names: brazilian-reits-deploy
requirements-file-paths: './flows/brazilian_reits/requirements.txt'
deployment-file-path: './prefect.yaml'