Skip to content

feat: change dir folders and deploy action #2

feat: change dir folders and deploy action

feat: change dir folders and deploy action #2

name: Build an Image and Deploy a Prefect flow

Check failure on line 1 in .github/workflows/prefect-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/prefect-deploy.yml

Invalid workflow file

`workflow_dispach` is not a valid event name
on: workflow_dispach
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.10'
- 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: Run Prefect Deploy
uses: PrefectHQ/actions-prefect-deploy@v3
with:
all-deployments: "true"
requirements-file-paths: ./flows/flow-1/requirements.txt, ./flows/flow-2/requirements.txt
deployment-file-path: ./prefect.yaml