feat: trigger release for skills v0.1.2 sync (#30) #3
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: Release Please | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: Create vendor archives | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| declare -A archives=( | |
| ["claude-plugin"]=".claude-plugin/* agents/claude/*" | |
| ["cursor-plugin"]=".cursor-plugin/* agents/cursor/*" | |
| ["codex-plugin"]=".codex-plugin/* agents/codex/*" | |
| ["copilot-plugin"]=".github/plugin/* agents/copilot/*" | |
| ["gemini-extension"]="gemini-extension.json SUPABASE.md" | |
| ) | |
| for name in "${!archives[@]}"; do | |
| # shellcheck disable=SC2086 | |
| tar -czvf "supabase-${name}.tar.gz" --dereference ${archives[$name]} skills/ assets/ || exit 1 | |
| done | |
| - name: Upload release assets | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh release upload ${{ steps.release.outputs.tag_name }} supabase-claude-plugin.tar.gz supabase-cursor-plugin.tar.gz supabase-codex-plugin.tar.gz supabase-copilot-plugin.tar.gz supabase-gemini-extension.tar.gz |