diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..c803de5a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,66 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Deploy to central + +on: workflow_dispatch + +permissions: + contents: read + +jobs: + build: + uses: ./.github/workflows/gradle.yml + deploy: + needs: build + strategy: + matrix: + include: + - target: publishIosArm64PublicationToSonatypeRepository + os: macos-latest + - target: publishIosSimulatorArm64PublicationToSonatypeRepository + os: macos-latest + - target: publishIosX64PublicationToSonatypeRepository + os: macos-latest + - target: publishAndroidReleasePublicationToSonatypeRepository + os: ubuntu-latest + - target: publishDesktopPublicationToSonatypeRepository + os: ubuntu-latest + - target: publishJsPublicationToSonatypeRepository + os: ubuntu-latest + - target: publishKotlinMultiplatformPublicationToSonatypeRepository + os: ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - uses: actions/cache@v3 + with: + path: | + ~/.konan + key: ${{ runner.os }}-${{ hashFiles('**/.lock') }} + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Gradle publish + uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f + with: + arguments: | + ${{ matrix.target }} + closeAndReleaseSonatypeStagingRepository + env: + OSSRH_STAGING_PROFILE_ID: ${{ secrets.OSSRH_STAGING_PROFILE_ID }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + OSSRH_GPG_SECRET_KEY_ID: ${{ secrets.OSSRH_GPG_SECRET_KEY_ID }} + OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + + diff --git a/.idea/gradle.xml b/.idea/gradle.xml index e9678226..27a9a66a 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,10 +4,22 @@