Abeshith commited on
Commit
428f646
·
1 Parent(s): caa9103

HF Spaces Deployment Fixed

Browse files
Files changed (1) hide show
  1. .github/workflows/docker-build.yml +0 -22
.github/workflows/docker-build.yml CHANGED
@@ -58,14 +58,10 @@ jobs:
58
  cache-from: type=gha
59
  cache-to: type=gha,mode=max
60
 
61
- - name: Image digest
62
- run: echo "Image pushed with digest: ${{ steps.docker_build.outputs.digest }}"
63
-
64
  deploy-to-hf-spaces:
65
  needs: build-and-push
66
  runs-on: ubuntu-latest
67
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
68
-
69
  steps:
70
  - name: Checkout repository
71
  uses: actions/checkout@v4
@@ -74,23 +70,5 @@ jobs:
74
  run: |
75
  git config --global credential.helper store
76
  echo "https://${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co" > ~/.git-credentials
77
-
78
  git remote add spaces https://huggingface.co/spaces/${{ secrets.HF_SPACE_REPO }}.git || true
79
  git push --force spaces main
80
- env:
81
- HF_USERNAME: ${{ secrets.HF_USERNAME }}
82
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
83
-
84
- notify:
85
- needs: [build-and-push]
86
- runs-on: ubuntu-latest
87
- if: always()
88
-
89
- steps:
90
- - name: Build status
91
- run: |
92
- if [ "${{ needs.build-and-push.result }}" = "success" ]; then
93
- echo "✅ Docker image built and pushed successfully!"
94
- else
95
- echo "❌ Docker build failed"
96
- fi
 
58
  cache-from: type=gha
59
  cache-to: type=gha,mode=max
60
 
 
 
 
61
  deploy-to-hf-spaces:
62
  needs: build-and-push
63
  runs-on: ubuntu-latest
64
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
 
65
  steps:
66
  - name: Checkout repository
67
  uses: actions/checkout@v4
 
70
  run: |
71
  git config --global credential.helper store
72
  echo "https://${{ secrets.HF_USERNAME }}:${{ secrets.HF_TOKEN }}@huggingface.co" > ~/.git-credentials
 
73
  git remote add spaces https://huggingface.co/spaces/${{ secrets.HF_SPACE_REPO }}.git || true
74
  git push --force spaces main