Nursing Citizen Development commited on
Commit
be345e9
·
1 Parent(s): 6e083fe

fix(ci): Update space sync to include Dockerfile and A2A files

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-hf-space.yml +17 -2
.github/workflows/sync-hf-space.yml CHANGED
@@ -6,7 +6,12 @@ on:
6
  paths:
7
  - 'app.py'
8
  - 'requirements.txt'
9
- - 'MODEL_CARD.md'
 
 
 
 
 
10
 
11
  jobs:
12
  sync-to-hub:
@@ -31,11 +36,21 @@ jobs:
31
  # Copy updated files
32
  cp app.py hf-space/app.py
33
  cp requirements.txt hf-space/requirements.txt
34
- cp MODEL_CARD.md hf-space/README.md
 
 
 
 
 
 
 
 
 
35
 
36
  # Push to HF Space
37
  cd hf-space
38
  git add .
 
39
  git commit -m "🚀 Auto-sync from GitHub: ${GITHUB_SHA::7}" || echo "No changes to commit"
40
  git push https://NurseCitizenDeveloper:$HF_TOKEN@huggingface.co/spaces/NurseCitizenDeveloper/NurseSim-Triage-Demo main
41
 
 
6
  paths:
7
  - 'app.py'
8
  - 'requirements.txt'
9
+ - 'README.md'
10
+ - 'Dockerfile'
11
+ - 'run.sh'
12
+ - 'agent_main.py'
13
+ - '.well-known/**'
14
+ - 'nursesim_rl/**'
15
 
16
  jobs:
17
  sync-to-hub:
 
36
  # Copy updated files
37
  cp app.py hf-space/app.py
38
  cp requirements.txt hf-space/requirements.txt
39
+ cp max-requirements.txt hf-space/max-requirements.txt 2>/dev/null || true
40
+ cp README.md hf-space/README.md
41
+ cp Dockerfile hf-space/Dockerfile
42
+ cp run.sh hf-space/run.sh
43
+ cp agent_main.py hf-space/agent_main.py
44
+
45
+ # Copy directories
46
+ rm -rf hf-space/.well-known hf-space/nursesim_rl
47
+ cp -r .well-known hf-space/
48
+ cp -r nursesim_rl hf-space/
49
 
50
  # Push to HF Space
51
  cd hf-space
52
  git add .
53
+ git status
54
  git commit -m "🚀 Auto-sync from GitHub: ${GITHUB_SHA::7}" || echo "No changes to commit"
55
  git push https://NurseCitizenDeveloper:$HF_TOKEN@huggingface.co/spaces/NurseCitizenDeveloper/NurseSim-Triage-Demo main
56