-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow to sync-with-huggingface
- Loading branch information
Showing
16 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Sync with Hugging Face | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/sync-with-huggingface.yml | ||
- app/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Sync with Hugging Face | ||
uses: nateraw/[email protected] | ||
with: | ||
# The github repo you are syncing from. Required. | ||
github_repo_id: 'myscale/ChatData' | ||
|
||
# The Hugging Face repo id you want to sync to. (ex. 'username/reponame') | ||
# A repo with this name will be created if it doesn't exist. Required. | ||
huggingface_repo_id: 'myscale/ChatData' | ||
|
||
# Hugging Face token with write access. Required. | ||
# Here, we provide a token that we called `HF_TOKEN` when we added the secret to our GitHub repo. | ||
hf_token: ${{ secrets.HF_TOKEN }} | ||
|
||
# The type of repo you are syncing to: model, dataset, or space. | ||
# Defaults to space. | ||
repo_type: 'space' | ||
|
||
# If true and the Hugging Face repo doesn't already exist, it will be created | ||
# as a private repo. | ||
# | ||
# Note: this param has no effect if the repo already exists. | ||
private: false | ||
|
||
# If repo type is space, specify a space_sdk. One of: streamlit, gradio, or static | ||
# | ||
# This option is especially important if the repo has not been created yet. | ||
# It won't really be used if the repo already exists. | ||
space_sdk: 'streamlit' | ||
|
||
# If provided, subdirectory will determine which directory of the repo will be synced. | ||
# By default, this action syncs the entire GitHub repo. | ||
# | ||
# An example using this option can be seen here: | ||
# https://github.com/huggingface/fuego/blob/830ed98/.github/workflows/sync-with-huggingface.yml | ||
subdirectory: app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.streamlit/secrets.example.toml β app/.streamlit/secrets.example.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.