Update dawidd6/action-download-artifact action to v14 - autoclosed #496
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+" | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.PGP_SECRET }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.PGP_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.PGP_PASSPHRASE }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Download Java JDK | |
| uses: typelevel/download-java@817e8c0d48dc2e88e155a8e4f69ba493bef621be # v2 | |
| id: download-java | |
| with: | |
| distribution: temurin | |
| java-version: 11 | |
| - name: Setup Java JDK | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: jdkfile | |
| java-version: 11 | |
| jdkFile: ${{ steps.download-java.outputs.jdkFile }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5 | |
| - name: Build & Test | |
| run: ./gradlew build --info | |
| - name: Publish Test Results | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: '**/build/test-results/*/TEST-*.xml' | |
| - name: Publish To Sonatype | |
| if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') | |
| run: ./gradlew publishAllPublicationsToMavenCentral | |
| - name: Publish To Gradle Plugin Portal | |
| if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| ./gradlew \ | |
| -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} \ | |
| -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} \ | |
| publishPlugins |