david-oplatka's picture
Create update_space_2
a938ee3 unverified
raw
history blame
816 Bytes
name: Update Space
on:
push:
branches:
- main
jobs:
sync-to-hub:
runs-on: ubuntu-latest
strategy:
matrix:
space_name: [company-pet-policy, about-mls, shakespeare] # List your Hugging Face space names here
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote set-url origin https://david-oplatka:[email protected]/spaces/david-oplatka/${{ matrix.space_name }}.git
git push origin main