test / .github /workflows /python-app.yml
अंkur गोswami
fix
6ef1d49
Raw History Blame Contribute Delete
839 Bytes
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Sync to HF
on:
push:
branches:
- main
- test
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git remote add space \
https://AnkurGoswami:$HF_TOKEN@huggingface.co/spaces/AnkurGoswami/ALAS-demo
git push --force space HEAD:main