Update plugin versions to v0.61.0 (#833) #2245
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 | |
| pull_request: | |
| types: [ opened, labeled, unlabeled, synchronize ] | |
| # Cancel superseded runs for the same PR/branch (saves runner minutes on rapid pushes, e.g. | |
| # Renovate, and gives faster feedback on the latest commit); let master runs finish. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| env: | |
| JAVA_VERSION: 21 | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v7.0.1 | |
| - name: Configure JDK ${{ env.JAVA_VERSION }} | |
| uses: actions/setup-java@v5.7.0 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - run: ./gradlew --version | |
| - name: Ktlint Check, Build, and Unit Tests with --continue | |
| run: ./gradlew ktlintCheck build -s --continue | |
| - name: Publish Test Report | |
| uses: EnricoMi/publish-unit-test-result-action@v2.24.0 | |
| if: always() | |
| with: | |
| comment_mode: off | |
| action_fail_on_inconclusive: true | |
| files: '**/build/test-results/test/TEST-*.xml' | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v7.0.1 | |
| if: github.repository == 'jaredsburrows/gradle-license-plugin' && github.ref == 'refs/heads/master' | |
| with: | |
| name: gradle-license-plugin-${{ github.workflow }}-${{ github.run_id }} | |
| path: | | |
| build/libs | |
| build/outputs | |
| build/publications | |
| build/distributions | |
| build/reports | |
| build/test-results | |
| publish: | |
| name: Publish Snapshot | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'jaredsburrows/gradle-license-plugin' && github.ref == 'refs/heads/master' | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v7.0.1 | |
| - name: Configure JDK ${{ env.JAVA_VERSION }} | |
| uses: actions/setup-java@v5.7.0 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - run: ./gradlew --version | |
| - name: Publish | |
| run: ./gradlew publish -s -i | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| - name: Generate Docs | |
| run: ./gradlew dokkaGeneratePublicationHtml | |
| - name: Publish Website | |
| uses: peaceiris/actions-gh-pages@v4.1.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: gradle-license-plugin/build/dokka/html | |
| user_name: "Github Actions" | |
| user_email: "action@github.com" |