Spaces:
Runtime error
Runtime error
Commit ·
6d7787d
1
Parent(s): dcfd930
Added CD to Hugging Face
Browse files5 unmodified lines678910111220 unmodified lines3334353637383911 unmodified lines515253545556575859606162636465666768697071727374755 unmodified lines job1: environment: name: testing
env: DATABASE_HOSTNAME: localhost DATABASE_PORT: 543220 unmodified lines --health-retries 5
runs-on: ubuntu-latest
steps: - name: Pulling Code uses: actions/checkout@v411 unmodified lines
- name: Run tests run: pytest
deploy: runs-on: ubuntu-latest needs: [job1]
environment: name: deploy
steps: - name: Pulling code uses: actions/checkout@v4 with: fetch-depth: 0
- name: Push to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git config --global user.email "ci@github.com" git config --global user.name "GitHub Actions" git remote add hf https://abdullah090809:$HF_TOKEN@huggingface.co/spaces/abdullah090809/fastapi-project git push hf main --force.github/workflows/build-deploy.yml+24