chore: trigger skill rebuild #36
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: Package Skills | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| jobs: | |
| package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Package skills | |
| run: | | |
| for dir in */; do | |
| if [ -f "${dir}SKILL.md" ]; then | |
| skill_name="${dir%/}" | |
| echo "Packaging ${skill_name}..." | |
| cd "$skill_name" | |
| zip -r "../${skill_name}.skill" . -x '.*' | |
| cd .. | |
| echo "Created ${skill_name}.skill" | |
| fi | |
| done | |
| - name: Upload skill artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: skills | |
| path: "*.skill" | |
| - name: Create/update release | |
| if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| name: Latest Skills | |
| files: "*.skill" | |
| make_latest: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |