Spaces:
Sleeping
Sleeping
File size: 801 Bytes
16942af ff72ddc 16942af 81cf802 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
name: Setting Up New Hugging Face Space
on:
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
strategy:
matrix:
space_name: [shakespeare, test] # 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 "actions@github.com"
git config --global user.name "GitHub Actions"
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add space https://david-oplatka:$HF_TOKEN@huggingface.co/spaces/david-oplatka/${{ matrix.space_name }}.git
git push --force space main
|