mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-09 06:15:41 -05:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: AutoGPT Platform - Deploy Dev Environment
|
|
|
|
on:
|
|
push:
|
|
branches: [ dev ]
|
|
paths:
|
|
- 'autogpt_platform/**'
|
|
workflow_dispatch:
|
|
inputs:
|
|
git_ref:
|
|
description: 'Git ref (branch/tag) of AutoGPT to deploy'
|
|
required: true
|
|
default: 'master'
|
|
type: string
|
|
|
|
permissions:
|
|
contents: 'read'
|
|
id-token: 'write'
|
|
|
|
jobs:
|
|
migrate:
|
|
environment: develop
|
|
name: Run migrations for AutoGPT Platform
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.inputs.git_ref || github.ref_name }}
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install prisma
|
|
|
|
- name: Run Backend Migrations
|
|
working-directory: ./autogpt_platform/backend
|
|
run: |
|
|
python -m prisma migrate deploy
|
|
env:
|
|
DATABASE_URL: ${{ secrets.BACKEND_DATABASE_URL }}
|
|
DIRECT_URL: ${{ secrets.BACKEND_DATABASE_URL }}
|
|
|
|
trigger:
|
|
needs: migrate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger deploy workflow
|
|
uses: peter-evans/repository-dispatch@v3
|
|
with:
|
|
token: ${{ secrets.DEPLOY_TOKEN }}
|
|
repository: Significant-Gravitas/AutoGPT_cloud_infrastructure
|
|
event-type: build_deploy_dev
|
|
client-payload: '{"ref": "${{ github.event.inputs.git_ref || github.ref }}", "repository": "${{ github.repository }}"}'
|