Skip to content

Commit

Permalink
Support github action sync space
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Dec 15, 2024
1 parent 3bf3f76 commit 4643bb0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/hf-space-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

name: HuggingFace Space Sync

on:
push:
branches:
- 'master'
workflow_dispatch:

jobs:
push-hf-space:
name: Push source code to HuggingFace
runs-on: ubuntu-latest

steps:
- name: Sync to HuggingFace
uses: nateraw/[email protected]
with:
github_repo_id: 'xiaoyao9184/docker-surya'
huggingface_repo_id: '${{ secrets.HF_USERNAME }}/surya'
hf_token: ${{ secrets.HF_TOKEN }}
repo_type: 'space'
private: false
space_sdk: 'gradio'
subdirectory: 'gradio'

0 comments on commit 4643bb0

Please sign in to comment.