Sync to Hugging Face hub #51
This file contains hidden or 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
name: Sync to Hugging Face hub | |
on: workflow_dispatch | |
jobs: | |
sync-to-hub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Install Git LFS | |
run: git lfs install | |
- name: Debug LFS Tracking | |
run: | | |
cat .gitattributes | |
git lfs ls-files | |
- name: Push to Hugging Face | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
run: | | |
git lfs push --all https://Riksarkivet:[email protected]/spaces/Riksarkivet/htr_demo | |
git push --force https://Riksarkivet:[email protected]/spaces/Riksarkivet/htr_demo main |