This repository was archived by the owner on Aug 7, 2026. It is now read-only.
v1.0.3 — premium unlock, backtrack, distance field #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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read version from manifest | |
| id: version | |
| run: echo "version=$(jq -r .version manifest.json)" >> "$GITHUB_OUTPUT" | |
| - name: Check if tag already exists | |
| id: tag_check | |
| run: | | |
| if git ls-remote --tags origin "refs/tags/v${{ steps.version.outputs.version }}" | grep -q .; then | |
| echo "exists=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "exists=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Package extension | |
| if: steps.tag_check.outputs.exists == 'false' | |
| run: | | |
| zip -r "beespy-v${{ steps.version.outputs.version }}.zip" . \ | |
| --exclude ".git/*" \ | |
| --exclude ".github/*" \ | |
| --exclude ".claude/*" \ | |
| --exclude "*.log" \ | |
| --exclude "node_modules/*" \ | |
| --exclude "docs/*" | |
| - name: Create release | |
| if: steps.tag_check.outputs.exists == 'false' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: v${{ steps.version.outputs.version }} | |
| name: v${{ steps.version.outputs.version }} | |
| files: beespy-v${{ steps.version.outputs.version }}.zip | |
| generate_release_notes: true |