diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ca6c471..58a22e04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,33 @@ -name: Release project - +name: Release on: push: tags: - 'v*' + branches: + - main + jobs: build: - runs-on: macos-latest + strategy: + matrix: + include: + - os: ubuntu-latest + gradle_args: publishJvmPublicationToSonatypeRepository publishKotlinMultiplatformPublicationToSonatypeRepository + - os: ubuntu-latest + gradle_args: publishLinuxX64PublicationToSonatypeRepository + - os: ubuntu-latest + gradle_args: publishMingwX64PublicationToSonatypeRepository + - os: macos-latest + gradle_args: publishIosArm64PublicationToSonatypeRepository + - os: macos-latest + gradle_args: publishIosX64PublicationToSonatypeRepository + - os: macos-latest + gradle_args: publishIosSimulatorArm64PublicationToSonatypeRepository + - os: macos-latest + gradle_args: publishMacosX64PublicationToSonatypeRepository + - os: macos-latest + gradle_args: publishMacosArm64PublicationToSonatypeRepository + runs-on: ${{ matrix.os }} env: SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} @@ -16,16 +37,11 @@ jobs: steps: - name: Checkout project sources uses: actions/checkout@v3 - - name: Cache konan - uses: actions/cache@v3 - with: - path: ~/.konan - key: ${{ runner.os }}-konan - - name: Build - uses: gradle/gradle-build-action@v2 + - uses: actions/setup-java@v3 with: - arguments: assemble - - name: Publish + distribution: liberica + java-version: 17 + - name: Build using gradle uses: gradle/gradle-build-action@v2 with: - arguments: publish closeAndReleaseStagingRepository + arguments: ${{ matrix.gradle_args }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index dbd9ff83..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Tests -on: - push: - branches: - - main - -jobs: - build: - strategy: - matrix: - include: - - os: ubuntu-latest - gradle_args: publishJvmPublicationToSonatypeRepository publishKotlinMultiplatformPublicationToSonatypeRepository - - os: ubuntu-latest - gradle_args: publishLinuxX64PublicationToSonatypeRepository - - os: ubuntu-latest - gradle_args: publishMingwX64PublicationToSonatypeRepository - - os: macos-latest - gradle_args: publishIosArm64PublicationToSonatypeRepository - - os: macos-latest - gradle_args: publishIosX64PublicationToSonatypeRepository - - os: macos-latest - gradle_args: publishIosSimulatorArm64PublicationToSonatypeRepository - - os: macos-latest - gradle_args: publishMacosX64PublicationToSonatypeRepository - - os: macos-latest - gradle_args: publishMacosArm64PublicationToSonatypeRepository - runs-on: ${{ matrix.os }} - env: - SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout project sources - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: liberica - java-version: 17 - - name: Build using gradle - uses: gradle/gradle-build-action@v2 - with: - arguments: ${{ matrix.gradle_args }} diff --git a/README.md b/README.md index eae6ee56..bf0dd2c0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ https://github.com/andreypfau/ton-kotlin/wiki/TON-Kotlin-documentation -[maven-central]: https://search.maven.org/artifact/org.ton/ton-kotlin +[maven-central]: https://search.maven.org/search?q=g:%22org.ton%22%20AND%20a:%22ton-kotlin%22 [license]: LICENSE [kotlin]: http://kotlinlang.org