this GitHub Action will install conda on the runne...
# show-us-what-you-got
m
this GitHub Action will install conda on the runner VM, install Prefect, then register a Flow (using the new
git
Storage to point it to code on a private repo):
Copy code
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. 
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - uses: actions/checkout@v2
      - uses: conda-incubator/setup-miniconda@v2
        with:
          auto-update-conda: true
          python-version: 3.8
      - name: install prefect
        shell: bash -l {0}
        run: conda install -c conda-forge prefect -y
      - name: login to Prefect Cloud
        shell: bash -l {0}
        run: prefect auth login -t ${{secrets.PREFECT_TOKEN}}
      - name: Register flow
        shell: bash -l {0}
        run: prefect register --project tester -p test.py -n "run-cloud-fn"
😎 3
Next steps: 1. Easy management of dependencies 2. Have it work for multiple flows in the Repo