Skip to content

Commit 75fd64c

Browse files
committed
Workflow to sync with huggingface
1 parent 8b6b15a commit 75fd64c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Push to Hugging Face
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: sync-huggingface-main
11+
cancel-in-progress: true
12+
13+
jobs:
14+
sync-to-huggingface:
15+
runs-on: ubuntu-latest
16+
environment: hf-sync
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
25+
lfs: true
26+
27+
- name: Sync to Hugging Face Hub
28+
uses: huggingface/hub-sync@v0.1.0
29+
with:
30+
github_repo_id: ${{ github.repository }}
31+
huggingface_repo_id: pgmpy/example_datasets
32+
hf_token: ${{ secrets.HF_TOKEN }}
33+
repo_type: dataset

0 commit comments

Comments
 (0)