add github action #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Quests to Hugging Face Space | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'quests/**' | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install huggingface_hub | |
| run: curl -LsSf https://hf.co/cli/install.sh | bash | |
| - name: Upload quests to HF Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: hf upload humanitys-last-hackathon/README quests . --repo-type=space | |