Spaces:
Runtime error
Runtime error
Anirudh Balaraman commited on
Update ci.yaml
Browse files- .github/workflows/ci.yaml +26 -0
.github/workflows/ci.yaml
CHANGED
|
@@ -25,3 +25,29 @@ jobs:
|
|
| 25 |
|
| 26 |
- name: Run CI Suite
|
| 27 |
run: make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
- name: Run CI Suite
|
| 27 |
run: make check
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
deploy-to-hf:
|
| 31 |
+
needs: quality-assurance # CRITICAL: Only runs if 'test' passes
|
| 32 |
+
runs-on: ubuntu-latest
|
| 33 |
+
steps:
|
| 34 |
+
- uses: actions/checkout@v4
|
| 35 |
+
with:
|
| 36 |
+
fetch-depth: 0
|
| 37 |
+
lfs: true # Enable if you are using large files
|
| 38 |
+
|
| 39 |
+
- name: Push to Hugging Face Hub
|
| 40 |
+
env:
|
| 41 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 42 |
+
# Replace with your HF username and Space name
|
| 43 |
+
HF_USERNAME: "anirudh0410"
|
| 44 |
+
SPACE_NAME: "WSA_Prostate"
|
| 45 |
+
run: |
|
| 46 |
+
git config --global user.email "action@github.com"
|
| 47 |
+
git config --global user.name "GitHub Action"
|
| 48 |
+
|
| 49 |
+
# Add Hugging Face as a remote
|
| 50 |
+
git remote add space https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
|
| 51 |
+
|
| 52 |
+
# Force push to the Space
|
| 53 |
+
git push --force space main
|