Skip to content

v0.4.1

v0.4.1 #12

Workflow file for this run

name: Trigger Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish_archives:
runs-on: ubuntu-latest
if: github.repository == 'Faire/faire-detekt-rules'
permissions:
contents: read
env:
RELEASE: true
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Setup gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
- name: Verify build
run: ./gradlew check
- name: Publish the artifacts
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD }}
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-parallel --no-configuration-cache