Spaces:
Paused
Paused
Update main.yml
Browse files- .github/workflows/main.yml +0 -41
.github/workflows/main.yml
CHANGED
|
@@ -56,44 +56,3 @@ jobs:
|
|
| 56 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 57 |
with:
|
| 58 |
password: ${{ secrets.PYPI_API_TOKEN }}
|
| 59 |
-
|
| 60 |
-
push_to_huggingface:
|
| 61 |
-
runs-on: ubuntu-latest
|
| 62 |
-
|
| 63 |
-
steps:
|
| 64 |
-
- name: Checkout
|
| 65 |
-
uses: actions/checkout@v4
|
| 66 |
-
with:
|
| 67 |
-
fetch-depth: 0
|
| 68 |
-
|
| 69 |
-
- name: Set up Python
|
| 70 |
-
uses: actions/setup-python@v5
|
| 71 |
-
with:
|
| 72 |
-
python-version: '3.12'
|
| 73 |
-
|
| 74 |
-
- name: Install dependencies
|
| 75 |
-
run: |
|
| 76 |
-
pip install huggingface_hub
|
| 77 |
-
|
| 78 |
-
- name: Configure Git
|
| 79 |
-
env:
|
| 80 |
-
GIT_NAME: ${{ secrets.GIT_NAME }}
|
| 81 |
-
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
|
| 82 |
-
run: |
|
| 83 |
-
git config --global user.name "$GIT_NAME"
|
| 84 |
-
git config --global user.email "$GIT_EMAIL"
|
| 85 |
-
git config --global credential.helper store
|
| 86 |
-
|
| 87 |
-
- name: Push to Hugging Face
|
| 88 |
-
env:
|
| 89 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 90 |
-
run: |
|
| 91 |
-
echo "machine huggingface.co login $HF_TOKEN" > ~/.netrc
|
| 92 |
-
chmod 600 ~/.netrc
|
| 93 |
-
git remote add hf https://huggingface.co/spaces/mhdzumair/mediaflow-proxy
|
| 94 |
-
git fetch hf
|
| 95 |
-
git checkout -b main || git checkout main
|
| 96 |
-
git pull hf main --rebase || true
|
| 97 |
-
git add .
|
| 98 |
-
git commit -m "Update to version ${{ github.ref_name }}" || echo "No changes to commit"
|
| 99 |
-
git push hf main
|
|
|
|
| 56 |
uses: pypa/gh-action-pypi-publish@release/v1
|
| 57 |
with:
|
| 58 |
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|