Merge pull request #906 from JoshuaOloton/chore/update-orgid-to-nulla… #11
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
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 | |
git add . | |
git stash | |
git checkout dev | |
git pull origin dev | |
source venv-dev/bin/activate | |
pip install -r requirements.txt | |
alembic upgrade head | |
echo "${{ secrets.PASSWORD }}" | sudo -S systemctl restart python-bp-dev.service |