Skip to content

Commit

Permalink
feat: support hf auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Jul 31, 2023
1 parent 87eb3fc commit e290113
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/huggingface.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sync to Hugging Face hub
on:
push:
branches: [main]

# to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: hf4all
SPACE_NAME: bingo
run: |
git lfs install
git lfs migrate import --include="*.jpg" --include="*.png" --include="*.mp4" -y
git add -A
git config --local --user.name weaigc
git config --local --user.email [email protected]
git commit -am "recommit"
git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Bingo,一个让你呼吸顺畅 New Bing。

高度还原 New Bing 网页版的主要操作,国内可用,兼容绝大多数微软 Bing AI 的功能,可自行部署使用。

[![docker build](https://github.com/weaigc/bingo/actions/workflows/docker.yml/badge.svg)](https://hub.docker.com/repository/docker/weaigc/bingo/)
[![MIT License](https://img.shields.io/badge/license-MIT-97c50f)](https://github.com/weaigc/bingo/blob/main/license)


</div>

## 演示站点
Expand Down

0 comments on commit e290113

Please sign in to comment.