Team Ai
Apppublic

canlasnicole/github-actions

sourceHugging Faceupdated 25d agoView on Hugging Face
0likes
App README

Automated CI/CD Pipeline with GitHub Actions & Hugging Face

This project sets up an automated CI/CD pipeline. Every time code is pushed to this GitHub repository, GitHub Actions automatically deploys the update to Hugging Face Spaces.


How It Works

  1. 1.Local Setup: Code changes are made locally and managed with Git.
  2. 2.GitHub Push: Code is pushed to the main branch on GitHub.
  3. 3.GitHub Actions: .github/workflows/deploy.yml runs automatically when a push happens.
  4. 4.Hugging Face Deploy: GitHub Actions uses the HF_TOKEN secret to push changes directly to Hugging Face Spaces.

Project Structure

text
my-gradio-app/
├── .github/
│   └── workflows/
│       └── deploy.yml    # GitHub Actions workflow script
├── app.py                # Main Gradio application code
├── README.md             # Project documentation & HF config
└── requirements.txt      # Python dependencies