This repository was archived by the owner on Apr 12, 2026. It is now read-only.
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 | ||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
| permissions: | ||
| contents: write | ||
| jobs: | ||
| release: | ||
| name: Build & Publish GitHub Release | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Extract version from tag | ||
| id: version | ||
| run: echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT | ||
| - name: Build ZIP | ||
| run: | | ||
| zip -r "click-lib-${{ steps.version.outputs.version }}.zip" . \ | ||
| --exclude "*.git*" \ | ||
| --exclude ".github/*" \ | ||
| --exclude "*.md" \ | ||
| --exclude "LICENSE" | ||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v2.6.1 | ||
| with: | ||
| name: "ClickLib ${{ steps.version.outputs.version }}" | ||
| body: | | ||
| ## ClickLib ${{ steps.version.outputs.version }} | ||
| Vanilla click detection library for Minecraft Java Edition 1.21.6 (pack_format 88). | ||
| ### Installation | ||
| Download the ZIP below and place it in your world's `datapacks/` folder. | ||
| ### Changelog | ||
| See [README.md](README.md) for API reference. | ||
| files: "click-lib-${{ steps.version.outputs.version }}.zip" | ||
| draft: false | ||
| prerelease: ${{ contains(steps.version.outputs.version, '-') }} | ||