Sync HF CLI skill from huggingface_hub@0fb3c939529f23e340651cf2f7ea0e… #21
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 skills to bucket | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "skills/**" | |
| - ".claude-plugin/marketplace.json" | |
| - "scripts/build_skills_index.py" | |
| - "scripts/build_skill_distribution.py" | |
| - ".github/workflows/sync-skills-to-bucket.yml" | |
| concurrency: | |
| group: sync-skills-to-bucket | |
| cancel-in-progress: false | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| - name: Build skills index artifact | |
| run: | | |
| uv run scripts/build_skills_index.py \ | |
| --repo-root . \ | |
| --out-dir out/skills-index/latest \ | |
| --branch main | |
| - name: Build skills distribution artifact | |
| run: | | |
| uv run scripts/build_skill_distribution.py \ | |
| --skills-dir skills \ | |
| --out-dir out/skills-distribution/latest \ | |
| --uri-prefix skill:// | |
| - name: Sync skills to bucket | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| uvx hf buckets sync ./skills hf://buckets/huggingface/skills/skills --delete | |
| uvx hf buckets cp ./.claude-plugin/marketplace.json hf://buckets/huggingface/skills/marketplace.json | |
| uvx hf buckets sync ./out/skills-index/latest hf://buckets/huggingface/skills/index/latest --delete | |
| uvx hf buckets sync ./out/skills-distribution/latest hf://buckets/huggingface/skills/distribution/latest --delete |