Update app.py #8
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: Deploy to Streamlit | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' # Update Node.js version to 16 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m venv venv | |
. venv/bin/activate | |
pip install -r requirements.txt | |
- name: Deploy to Streamlit | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
run: | | |
. venv/bin/activate | |
streamlit run app.py |