pms_server / .github /workflows /hf-push.yml
Noel-Teens's picture
email invite implemented
25039bc
Raw History Blame Contribute Delete
724 Bytes
name: Sync to Hugging Face Space
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Configure git user
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Push to Space (main)
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: neurostack-in
SPACE_NAME: pms_server
run: |
git push --force \
https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME \
HEAD:main