fix: do not complete using item when cancelling (fixes #2496) (fixes … #1
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: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| Build: | |
| name: Build and Publish | |
| # Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/wrapper-validation-action@v3 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| cache: gradle | |
| java-version: 21 | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: ${{ runner.os }}-gradle | |
| - id: vars | |
| run: echo "short_commit_hash=${GITHUB_SHA::10}" >> $GITHUB_OUTPUT | |
| - name: Publish to Central via Build | |
| if: github.repository_owner == 'Minestom' | |
| run: | | |
| ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | |
| echo "Version: ${SHORT_COMMIT_HASH}" >> $GITHUB_STEP_SUMMARY | |
| env: | |
| MINESTOM_VERSION: ${{ steps.vars.outputs.short_commit_hash }} | |
| MINESTOM_CHANNEL: release | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} |