Fix MaceCombo state management: improve wind charge usage reliability #8
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: Publish Release | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Extract version and compatibility info | |
| id: extract_info | |
| run: | | |
| VERSION=$(grep "mod_version=" gradle.properties | cut -d'=' -f2) | |
| MINECRAFT_VERSION=$(grep "minecraft_version=" gradle.properties | cut -d'=' -f2) | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| echo "MINECRAFT_VERSION=$MINECRAFT_VERSION" >> $GITHUB_OUTPUT | |
| echo "Extracted version: $VERSION" | |
| echo "Base Minecraft version: $MINECRAFT_VERSION" | |
| # Get commits since last tag | |
| LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") | |
| if [ -z "$LAST_TAG" ]; then | |
| COMMITS=$(git log --oneline --pretty=format:"- %s" -10) | |
| else | |
| COMMITS=$(git log --oneline --pretty=format:"- %s" $LAST_TAG..HEAD) | |
| fi | |
| echo "COMMITS<<EOF" >> $GITHUB_OUTPUT | |
| echo "$COMMITS" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: v${{ steps.extract_info.outputs.VERSION }} | |
| name: Release v${{ steps.extract_info.outputs.VERSION }} | |
| body: | | |
| ## Nora Tweaks v${{ steps.extract_info.outputs.VERSION }} | |
| **Compatible Minecraft Versions:** 1.21.7 - 1.21.8 | |
| **Base Version:** ${{ steps.extract_info.outputs.MINECRAFT_VERSION }} | |
| **Requirements:** | |
| - Java 21+ | |
| - Fabric Loader 0.16.14+ | |
| - Meteor Client | |
| ## 📋 Changes in this release: | |
| ${{ steps.extract_info.outputs.COMMITS }} | |
| --- | |
| *This is an automated release. Download the .jar file below and place it in your mods folder.* | |
| files: | | |
| ./build/libs/*.jar | |
| draft: false | |
| prerelease: false |