Skip to content

Deploy to Hugging Face Spaces #5

Deploy to Hugging Face Spaces

Deploy to Hugging Face Spaces #5

Workflow file for this run

name: Deploy to Hugging Face Spaces
on:
workflow_run:
workflows: ["CI"]
types:
- completed
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Spaces
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git remote add hf https://thompsonson:[email protected]/spaces/thompsonson/bayesian_game
git push hf main --force