Skip to content

Commit 7d80774

Browse files
authored
chore: add CD workflow for deployment
1 parent 6eb9076 commit 7d80774

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CD Pipeline
2+
3+
on:
4+
push:
5+
branches: [main] # Runs when code is pushed to main
6+
7+
jobs:
8+
deploy:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Deploy FastAPI App
16+
run: |
17+
echo "Deploying application..."
18+
# If using a server, SSH into it and pull the latest code.
19+
# Example: ssh user@your_server "cd /path/to/app && git pull && systemctl restart my-fastapi-app"

0 commit comments

Comments
 (0)