Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
deploy test (?)
  • Loading branch information
PLeonLopes committed Nov 17, 2024
1 parent a6b90da commit 7d211b1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Flask App

on:
push:
branches:
- dev

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Flask app
run: |
nohup gunicorn app:app --bind 0.0.0.0:5000 &

0 comments on commit 7d211b1

Please sign in to comment.