Skip to content

append system path

append system path #15

Workflow file for this run

name: Deploy Prefect flow
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Prefect Deploy
env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
SUBABOT_BACKEND_URL: ${{ secrets.SUBABOT_BACKEND_URL }}
SUBABOT_FRONTEND_URL: ${{ secrets.SUBABOT_FRONTEND_URL }}
DETA_PROJECT_KEY: ${{ secrets.DETA_PROJECT_KEY }}
SLACK_CLIENT_ID: ${{ secrets.SLACK_CLIENT_ID }}
SLACK_CLIENT_SECRET: ${{ secrets.SLACK_CLIENT_SECRET }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_APP_ID: ${{ secrets.SLACK_APP_ID }}
SLACK_TEAM_ID: ${{ secrets.SLACK_TEAM_ID }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
run: |
cd backend
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
poetry install --no-interaction
poetry run prefect