Daviddolor commited on
Commit
d6092ee
·
1 Parent(s): 08ee52a

Add FastAPI Cloud deploy workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +27 -0
.github/workflows/deploy.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Deploy"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ deploy:
11
+ name: "Deploy"
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v5
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Install the latest version of uv
21
+ uses: astral-sh/setup-uv@v7
22
+
23
+ - name: Deploy to FastAPI Cloud
24
+ run: uv run fastapi deploy
25
+ env:
26
+ FASTAPI_CLOUD_TOKEN: ${{ secrets.FASTAPI_CLOUD_TOKEN }}
27
+ FASTAPI_CLOUD_APP_ID: ${{ secrets.FASTAPI_CLOUD_APP_ID }}