chore: bump com.github.NighterDevelopment:SmartSpawner from 1.6.4 to 1.6.6 #36
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: Build Plugin | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| paths-ignore: | |
| - '**.md' | |
| - 'LICENSE' | |
| - '.gitignore' | |
| - 'README' | |
| - 'docs/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| paths-ignore: | |
| - '**.md' | |
| - 'LICENSE' | |
| - '.gitignore' | |
| - 'README' | |
| - 'docs/**' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Make gradlew executable | |
| run: chmod +x gradlew | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Validate Gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: false | |
| - name: Build with Gradle | |
| run: ./gradlew clean shadowJar --no-daemon | |
| - name: Get version from build.gradle | |
| id: get_version | |
| run: | | |
| VERSION=$(grep "^version = " build.gradle | sed "s/version = '\(.*\)'/\1/") | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Plugin version: $VERSION" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SSAddon-SpawnerLimiter-${{ steps.get_version.outputs.VERSION }} | |
| path: build/libs/SSAddon-SpawnerLimiter-*.jar | |
| if-no-files-found: error | |
| retention-days: 30 | |