From ed1717313aad8d2a66004d8af14914c13dd67ef5 Mon Sep 17 00:00:00 2001 From: lxcong Date: Thu, 23 Apr 2026 14:41:37 +0800 Subject: [PATCH] ci: publish agentkey.skill asset on each release --- .github/workflows/release-please.yml | 32 +++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e371abb..ae0e46e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,8 +11,38 @@ permissions: jobs: release-please: runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} + tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: googleapis/release-please-action@v4 + - id: release + uses: googleapis/release-please-action@v4 with: config-file: release-please-config.json manifest-file: .release-please-manifest.json + + publish-skill-asset: + needs: release-please + if: ${{ needs.release-please.outputs.release_created == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build agentkey.skill zip + run: | + cd skills/agentkey + zip -r "$GITHUB_WORKSPACE/agentkey.skill" . \ + -x "*.DS_Store" \ + -x "__pycache__/*" \ + -x "*.pyc" + echo "--- contents ---" + unzip -l "$GITHUB_WORKSPACE/agentkey.skill" + + - name: Upload asset to release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ needs.release-please.outputs.tag_name }} + run: | + gh release upload "$TAG" agentkey.skill \ + --repo "$GITHUB_REPOSITORY" \ + --clobber