Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkout first before push to hub
Browse files Browse the repository at this point in the history
chiang-yuan committed Jun 26, 2024
1 parent a99d576 commit 70edd21
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/sync-hf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Sync to Hugging Face hub

on:
push:
branches: [space]
@@ -14,6 +15,21 @@ jobs:
with:
fetch-depth: 0
lfs: true

# Check out the branch you want to push (e.g., space)
- name: Checkout space branch
run: git checkout space

# - name: Push to hub
# env:
# HF_TOKEN: ${{ secrets.HF_TOKEN }}
# run: |
# # Set up correct remote URL
# git remote set-url origin https://HF_USERNAME:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/atomind/mlip-arena

# # Push the space branch to the remote main branch
# git push origin space:main

- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}

0 comments on commit 70edd21

Please sign in to comment.