Merge pull request #422 from PrefectHQ/pydantic-updates #22
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: Build and publish Prefect Integrations (workspace) Deployments | |
"on": | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/prefect-deploy-integrations.yaml | |
- deployment.yaml | |
- prefect.yaml | |
- src/** | |
workflow_dispatch: {} | |
# Limit concurrency by workflow/branch combination. | |
# | |
# For builds, pushing additional changes to the | |
# branch will cancel prior in-progress and pending builds. | |
# | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# Do not grant jobs any permissions by default | |
permissions: {} | |
jobs: | |
deploy_flows: | |
name: Build integrations workspace deployment images | |
runs-on: ubuntu-latest | |
permissions: | |
# required to read from the repo | |
contents: read | |
# required to obtain Google Cloud service account credentials | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: ${{ secrets.GHA_WORKLOAD_IDENTITY_PROVIDER }} | |
service_account: collection-registry-gen-main@prefect-org-github-actions.iam.gserviceaccount.com | |
- name: Configure Google Cloud credential helper | |
run: gcloud auth configure-docker --quiet us-docker.pkg.dev | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
# This may be able to be removed in the future | |
- name: Install requirements | |
run: | | |
pip install prefect | |
pip install -r requirements.txt | |
- name: Auth to Prefect Cloud | |
uses: PrefectHQ/actions-prefect-auth@v1 | |
with: | |
prefect-api-key: ${{ secrets.PREFECT_PRD_INTEGRATIONS_WORKSPACE_API_KEY }} | |
prefect-workspace: prefect-technologies/integrations | |
- name: Deploy all integrations flows | |
run: prefect deploy --all |