Release 1.1.8 #27
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: Publish Maven Artifacts | |
| on: | |
| release: | |
| types: [ published ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Install GPG | |
| env: | |
| SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
| run: | | |
| brew install gpg | |
| echo "$SIGNING_KEY" | gpg --dearmor > ${HOME}/secring.gpg | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Add Gradle Properties | |
| env: | |
| MAVEN_CENTRAL_USER_NAME: ${{ secrets.MAVEN_CENTRAL_USER_NAME }} | |
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
| SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| run: | | |
| echo >> gradle.properties | |
| echo "mavenCentralUsername=${MAVEN_CENTRAL_USER_NAME}" >> gradle.properties | |
| echo "mavenCentralPassword=${MAVEN_CENTRAL_PASSWORD}" >> gradle.properties | |
| echo "signing.keyId=${SIGNING_KEY_ID}" >> gradle.properties | |
| echo "signing.password=${SIGNING_KEY_PASSWORD}" >> gradle.properties | |
| echo "signing.secretKeyRingFile=${HOME}/secring.gpg" >> gradle.properties | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Publish To Maven Central | |
| run: | | |
| ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache | |
| echo "Deploying to https://central.sonatype.com/publishing/deployments" | |
| echo "Publishing to https://central.sonatype.com/artifact/io.github.pingpongboss/compose-exploded-layers" |