You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
545 B
29 lines
545 B
name: Run Python script
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- discord-bot
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install Gradio
|
|
run: python -m pip install gradio
|
|
|
|
- name: Log in to Hugging Face
|
|
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
|
|
|
- name: Deploy to Spaces
|
|
run: gradio deploy
|