reaeme #12
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
name: Sync to Hugging Face Hub | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: # To trigger the workflow manually from the Actions tab | |
jobs: | |
sync-to-hub: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Set up git configuration | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
- name: Pull from the Hugging Face hub with merge | |
run: | | |
git pull --no-rebase https://BoltzmannEntropy:[email protected]/spaces/BoltzmannEntropy/vlms main | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
- name: Push changes to the Hugging Face hub | |
run: | | |
git push https://BoltzmannEntropy:[email protected]/spaces/BoltzmannEntropy/vlms main | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} |