soutrik's picture
Add GitHub Actions workflow to deploy to Hugging Face Spaces
f0556d1
raw
history blame
690 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main # or the branch you want to trigger the deployment from
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Git Large File Storage (LFS)
run: |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://huggingface.co/spaces/soutrik/EraV2_S20_Tokenization
git push hf main