-
Notifications
You must be signed in to change notification settings - Fork 44.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
2,446 additions
and
3,632 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: AutoGPT Platform - Deploy Dev Environment | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
paths: | ||
- 'autogpt_platform/**' | ||
|
||
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 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
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 }} | ||
|
||
- name: Run Market Migrations | ||
working-directory: ./autogpt_platform/market | ||
run: | | ||
python -m prisma migrate deploy | ||
env: | ||
DATABASE_URL: ${{ secrets.MARKET_DATABASE_URL }} | ||
|
||
trigger: | ||
needs: migrate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger deploy workflow | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.DEPLOY_TOKEN }} | ||
repository: Significant-Gravitas/AutoGPT_cloud_infrastructure | ||
event-type: build_deploy_dev | ||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}' |
Oops, something went wrong.