forked from hngprojects/hng_boilerplate_python_fastapi_web
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 788 Bytes
/
cd.dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Dev Deployment
on:
# push:
# branches: [dev]
# paths-ignore:
# - "README.md"
# - ".github/workflows/**"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use SSH Action
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd hng_boilerplate_python_fastapi_web/dev
git add .
git stash
git pull origin dev
source venv/bin/activate
pip install -r requirements.txt
alembic revision --autogenerate
alembic upgrade head