File size: 888 Bytes
360f81c
 
 
 
 
 
 
 
6744d9c
360f81c
 
 
ac12df4
 
ef7e22b
6744d9c
360f81c
 
aa739dd
360f81c
 
 
 
 
 
 
 
 
 
cf04815
360f81c
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
name: Deploy

on:
  push:
    branches:
      - master
    paths:
      - 'data/**'
      - 'docs/**'
      - 'app.py'
      - 'README.md'
      - 'requirements.txt'
      - 'index.html'
      - 'LICENSE'
      - '.github/workflows/push_spaces.yaml'
      - 'spitfight/**'

concurrency:
  group: ${{ github.ref }}-hfpush
  cancel-in-progress: true

jobs:
  push:
    runs-on: ubuntu-latest
    if: github.event.repository.fork == false
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          lfs: true
          ref: master
      - name: Push to Space
        env:
          HF_TOKEN: ${{ secrets.HF_TOKEN }}
        run: |
          for i in 1 2 3 4 5; do
            git push -f https://jaywonchung:$HF_TOKEN@huggingface.co/spaces/symbioticlab/ml-energy-leaderboard master:main && break || sleep 5;
          done