File size: 752 Bytes
fe1089d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# workflow that syncs the main branch to the Hugging Face Hub (Huggingface Spaces)
#CREDIT Copied from Hugging Face, Inc.

name: HGF Hub Sync (Main)
# runs on pushes to the main branch and manually triggered workflows
on:
  push:
    branches: [main]

  workflow_dispatch:

# jobs to run
jobs:
  # sync job
  sync-to-hub:
    runs-on: ubuntu-latest
    steps:
    # checkout the repository
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
          lfs: true
      # push to hub with huggingface token
      - name: Push to hub
        env:
          HF_TOKEN: ${{ secrets.HF_TOKEN }}
        # run git push
        run: git push https://LennardZuendorf:[email protected]/spaces/LennardZuendorf/thesis-webapp-docker main