fix: correct plugin.json version to 1.5.2 #12
Workflow file for this run
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 | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Get version from tag | |
| id: version | |
| run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - name: Create skill package | |
| run: | | |
| mkdir -p dist | |
| # Copy skill files from new structure | |
| cp skills/php-modernization/SKILL.md dist/ | |
| cp LICENSE dist/ | |
| [ -d "skills/php-modernization/references" ] && cp -r skills/php-modernization/references dist/ | |
| [ -d "skills/php-modernization/scripts" ] && cp -r skills/php-modernization/scripts dist/ | |
| [ -d "skills/php-modernization/assets" ] && cp -r skills/php-modernization/assets dist/ | |
| [ -d "skills/php-modernization/templates" ] && cp -r skills/php-modernization/templates dist/ | |
| # Include plugin manifest | |
| [ -d ".claude-plugin" ] && cp -r .claude-plugin dist/ | |
| cd dist | |
| zip -r ../php-modernization-${{ steps.version.outputs.version }}.zip . | |
| tar -czvf ../php-modernization-${{ steps.version.outputs.version }}.tar.gz . | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 | |
| with: | |
| files: | | |
| php-modernization-${{ steps.version.outputs.version }}.zip | |
| php-modernization-${{ steps.version.outputs.version }}.tar.gz | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |