Spaces:
Running
Running
fix push to hf
Browse files
.github/workflows/main.yml
CHANGED
@@ -39,7 +39,7 @@ jobs:
|
|
39 |
- name: Image digest
|
40 |
run: echo ${{ steps.docker_build.outputs.digest }}
|
41 |
|
42 |
-
|
43 |
runs-on: ubuntu-latest
|
44 |
|
45 |
steps:
|
@@ -84,11 +84,11 @@ jobs:
|
|
84 |
env:
|
85 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
86 |
run: |
|
87 |
-
huggingface-cli login --token $HF_TOKEN
|
88 |
git remote add hf https://huggingface.co/spaces/mhdzumair/mediaflow-proxy
|
89 |
git fetch hf
|
90 |
git checkout -b main || git checkout main
|
91 |
git pull hf main --rebase || true
|
92 |
git add .
|
93 |
git commit -m "Update to version ${{ github.ref_name }}" || echo "No changes to commit"
|
94 |
-
git push
|
|
|
39 |
- name: Image digest
|
40 |
run: echo ${{ steps.docker_build.outputs.digest }}
|
41 |
|
42 |
+
publish_to_pypi:
|
43 |
runs-on: ubuntu-latest
|
44 |
|
45 |
steps:
|
|
|
84 |
env:
|
85 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
86 |
run: |
|
87 |
+
huggingface-cli login --token $HF_TOKEN --add-to-git-credential
|
88 |
git remote add hf https://huggingface.co/spaces/mhdzumair/mediaflow-proxy
|
89 |
git fetch hf
|
90 |
git checkout -b main || git checkout main
|
91 |
git pull hf main --rebase || true
|
92 |
git add .
|
93 |
git commit -m "Update to version ${{ github.ref_name }}" || echo "No changes to commit"
|
94 |
+
git push https://$HF_TOKEN@huggingface.co/spaces/mhdzumair/mediaflow-proxy main
|