nice-bill commited on
Commit
065aab9
·
verified ·
1 Parent(s): c35f0b2

deploy from github

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +3 -5
.github/workflows/deploy.yml CHANGED
@@ -6,6 +6,7 @@ on:
6
  paths-ignore:
7
  - '**.md'
8
  - 'docs/**'
 
9
 
10
  jobs:
11
  deploy:
@@ -19,15 +20,12 @@ jobs:
19
  pip install -U huggingface_hub
20
  python -c "from huggingface_hub import HfApi; api = HfApi(token='${{ secrets.HF_TOKEN }}'); api.upload_folder(folder_path='.', repo_id='nice-bill/agent-arena', repo_type='space', commit_message='deploy from github')"
21
 
22
- - name: Wait for HF to process
23
- run: sleep 10
24
-
25
- - name: Restart HF Space
26
  run: |
27
  curl -X POST "https://nice-bill-agent-arena.hf.space/api/restart" \
28
  -H "Content-Type: application/json"
29
 
30
  - name: Verify new version
31
  run: |
32
- sleep 5
33
  curl -s "https://nice-bill-agent-arena.hf.space/api/version"
 
6
  paths-ignore:
7
  - '**.md'
8
  - 'docs/**'
9
+ - 'frontend/**' # Frontend builds on HF Space
10
 
11
  jobs:
12
  deploy:
 
20
  pip install -U huggingface_hub
21
  python -c "from huggingface_hub import HfApi; api = HfApi(token='${{ secrets.HF_TOKEN }}'); api.upload_folder(folder_path='.', repo_id='nice-bill/agent-arena', repo_type='space', commit_message='deploy from github')"
22
 
23
+ - name: Restart HF Space to rebuild frontend
 
 
 
24
  run: |
25
  curl -X POST "https://nice-bill-agent-arena.hf.space/api/restart" \
26
  -H "Content-Type: application/json"
27
 
28
  - name: Verify new version
29
  run: |
30
+ sleep 15
31
  curl -s "https://nice-bill-agent-arena.hf.space/api/version"