chore(deps): update dependency gradle to v8.10.1 #72
This file contains 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 | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4.0.1 | |
# - id: install-secret-key | |
# name: Install gpg secret key | |
# run: | | |
# # Install gpg secret key | |
# cat <(echo -e "${{ secrets.SONATYE_PGP_PRIVATE_KEY }}") | gpg --batch --import | |
# # Verify gpg secret key | |
# gpg --list-secret-keys --keyid-format LONG | |
- name: Build and publish with Gradle | |
env: | |
# CI marker | |
CI: 'true' | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | |
# keyring file (did not get this to work) | |
# ORG_GRADLE_PROJECT_signing.password: ${{ secrets.SONATYE_PGP_PASSWORD }} | |
# ORG_GRADLE_PROJECT_signing.keyId: ${{ secrets.SONATYE_PGP_KEY_ID }} | |
# ORG_GRADLE_PROJECT_signing.secretKeyRingFile: /home/runner/.gnupg/secring.gpg | |
# in-memory key | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SONATYE_PGP_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SONATYE_PGP_PRIVATE_KEY }} | |
run: ./gradlew clean check publishToSonatype | |
# TODO what about publishing releases? | |
# see https://github.com/gradle-nexus/publish-plugin#publishing-and-closing-in-different-gradle-invocations | |
# https://github.com/marketplace/actions/junit-report-action | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4.3.1 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: 'build/test-results/**/*.xml' | |
require_tests: true # currently no tests present | |
annotate_only: true | |
detailed_summary: true | |
# fail_on_failure: true |