Spaces:
Paused
Paused
Add CD job for pushing changes to hugging face
Browse filesFiles changed (2)
- .github/workflows/cd.ymlDeleted-24
- .github/workflows/main.yml+41
123456789101112131415161718192021222324name: Publish Python 🐍 distributions 📦 to PyPI
on: release: types: [created]
jobs: deploy: runs-on: ubuntu-latest
steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install dependencies run: | pip install poetry poetry build - name: Build and publish uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }}37 unmodified lines38394037 unmodified lines- name: Image digestrun: echo ${{ steps.docker_build.outputs.digest }}37 unmodified lines383940414243444546474849505152535455565758596061626364656667686970717273747576777879808137 unmodified lines- name: Image digestrun: echo ${{ steps.docker_build.outputs.digest }}deploy:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- name: Set up Pythonuses: actions/setup-python@v5with:python-version: '3.12'- name: Install dependenciesrun: |pip install poetrypoetry build- name: Build and publishuses: pypa/gh-action-pypi-publish@release/v1with:password: ${{ secrets.PYPI_API_TOKEN }}push_to_huggingface:runs-on: ubuntu-lateststeps:- name: Checkoutuses: actions/checkout@v4- name: Set up Pythonuses: actions/setup-python@v5with:python-version: '3.12'- name: Install dependenciesrun: |pip install huggingface_hub- name: Push to Hugging Faceenv:HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |huggingface-cli login --token $HF_TOKENgit push https://huggingface.co/spaces/mhdzumair/mediaflow-proxy main
.github/workflows/cd.ymlDeleted-24
.github/workflows/main.yml+41