Skip to content

Publish

Publish #1

Workflow file for this run

name: Publish
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: "publish"
cancel-in-progress: true
jobs:
publish-library:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Set up gradle
uses: gradle/gradle-build-action@v2
- name: Write secrets to gradle.properties
run: |
echo "mavenCentralUsername=${{ secrets.MAVEN_CENTRAL_USERNAME }}" >> gradle.properties
echo "mavenCentralPassword=${{ secrets.MAVEN_CENTRAL_PASSWORD }}" >> gradle.properties
echo "signingInMemoryKey=${{ secrets.SIGNING_IN_MEMORY_KEY }}" >> gradle.properties
echo "signingInMemoryKeyId=${{ secrets.SIGNING_IN_MEMORY_KEY_ID }}" >> gradle.properties
echo "signingInMemoryKeyPassword=${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}" >> gradle.properties
- name: Publish
run: ./gradlew publishAll
- name: Close and release
run: ./gradlew closeAndReleaseAll