name: Deploy to Hugging Face on: push: branches: [main] pull_request: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Deploy to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | pip install huggingface_hub huggingface-cli upload ${{ secrets.HF_USERNAME }}/${{ secrets.HF_SPACE }} ./ --include="*.py" --include="*.txt" --include="*.md" --message "Deploy: ${{ github.sha }}"