AILIXIR Bot commited on
Commit
a3fc937
·
1 Parent(s): 131bd94

Auto-sync: fb3380f1512508e58be30a38b04e81385a22a55f

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-hf-all.yml +10 -2
.github/workflows/sync-hf-all.yml CHANGED
@@ -32,6 +32,15 @@ jobs:
32
  - uses: actions/checkout@v4
33
  with:
34
  fetch-depth: 0
 
 
 
 
 
 
 
 
 
35
  - name: Sync ailixir-api
36
  env:
37
  HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
@@ -41,13 +50,12 @@ jobs:
41
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
42
  cd /tmp/hf-space
43
  # Sync files (new, modified, deleted) but preserve the live database
44
- rsync -av --delete --exclude=ai_apps --exclude=.git --exclude=.env --exclude=public/imgs --exclude=storage --exclude=Diagrams --exclude=database/ailixir.sqlite "$GITHUB_WORKSPACE/" .
45
  cp "$GITHUB_WORKSPACE/README_HF.md" README.md 2>/dev/null || true
46
  # Write .env with all required environment variables for HF Spaces
47
  printf '%s\n' \
48
  'RUN_MODE=hf' \
49
  'APP_KEY=base64:T/MgQZht16genNJN3aZ5flCuvfe7Zfs4yFhuAFO2itU=' \
50
- 'AI_INTEGRATION_ROUTES_ENABLED=true' \
51
  'APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space' \
52
  'APP_DEBUG=true' \
53
  'ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space' \
 
32
  - uses: actions/checkout@v4
33
  with:
34
  fetch-depth: 0
35
+ - name: Install Hugging Face CLI
36
+ run: pip install -U "huggingface_hub[cli]"
37
+ - name: Enable AI integration routes
38
+ env:
39
+ HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
40
+ run: |
41
+ hf spaces secrets add Ailixir-AI-Team/ailixir-api \
42
+ -s AI_INTEGRATION_ROUTES_ENABLED=true \
43
+ --token "$HF_TOKEN_AILIXIR"
44
  - name: Sync ailixir-api
45
  env:
46
  HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
 
50
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
51
  cd /tmp/hf-space
52
  # Sync files (new, modified, deleted) but preserve the live database
53
+ rsync -av --delete --exclude=ai_apps --exclude=.git --exclude=.env --exclude=.dockerignore --exclude=public/imgs --exclude=storage --exclude=Diagrams --exclude=database/ailixir.sqlite "$GITHUB_WORKSPACE/" .
54
  cp "$GITHUB_WORKSPACE/README_HF.md" README.md 2>/dev/null || true
55
  # Write .env with all required environment variables for HF Spaces
56
  printf '%s\n' \
57
  'RUN_MODE=hf' \
58
  'APP_KEY=base64:T/MgQZht16genNJN3aZ5flCuvfe7Zfs4yFhuAFO2itU=' \
 
59
  'APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space' \
60
  'APP_DEBUG=true' \
61
  'ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space' \