Initial release: EBMT Handbook skill for AI coding agents #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: Build & Release Skill | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set version from SHA | |
| id: version | |
| run: | | |
| SHORT_SHA="${GITHUB_SHA::7}" | |
| echo "sha=${SHORT_SHA}" >> $GITHUB_OUTPUT | |
| echo "Version: ${SHORT_SHA}" | |
| - name: Package skill | |
| run: | | |
| cd ebmt-handbook | |
| zip -r ../ebmt-handbook.zip . | |
| cd .. | |
| cp ebmt-handbook.zip ebmt-handbook.skill | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ebmt-handbook-${{ steps.version.outputs.sha }} | |
| path: ebmt-handbook.skill | |
| - name: Create GitHub Release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| SHORT_SHA="${GITHUB_SHA::7}" | |
| TAG="v0.1.0-${SHORT_SHA}" | |
| cat > release-notes.md <<EOF | |
| ## EBMT Handbook Skill | |
| **Version:** \`${SHORT_SHA}\` | |
| **Commit:** ${GITHUB_SHA} | |
| ### Install | |
| \`\`\`bash | |
| npx skills add htlin222/ebmt-handbook-skill | |
| \`\`\` | |
| Or download the \`.skill\` file from assets below. | |
| EOF | |
| gh release create "${TAG}" \ | |
| --title "ebmt-handbook skill ${TAG}" \ | |
| --notes-file release-notes.md \ | |
| ebmt-handbook.skill |