Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
canstralian authored Feb 2, 2025
1 parent 6ed6059 commit d4a66b9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Streamlit
run: |
pip install streamlit
- name: Deploy to Hugging Face
env:
HUGGINGFACE_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
streamlit run your_app.py --server.port 8501 --server.address 0.0.0.0

0 comments on commit d4a66b9

Please sign in to comment.