diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29021fa..66cc4df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,15 @@ jobs: strategy: matrix: - os: [macOS-latest] + os: [ macOS-latest ] runs-on: ${{matrix.os}} steps: - name: Checkout the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: | @@ -33,16 +33,8 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - - name: Checkout Gradle Build Cache - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - !~/.gradle/wrapper/dists/**/gradle*.zip - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - gradle-${{ runner.os }}- + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 - name: Cache konan uses: actions/cache@v3 @@ -62,17 +54,19 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: | ./gradlew multiplatform-markdown-renderer:publishAllPublicationsToMavenCentralRepository --no-daemon --no-configure-on-demand --no-parallel + ./gradlew multiplatform-markdown-renderer-m2:publishAllPublicationsToMavenCentralRepository --no-daemon --no-configure-on-demand --no-parallel + ./gradlew multiplatform-markdown-renderer-m3:publishAllPublicationsToMavenCentralRepository --no-daemon --no-configure-on-demand --no-parallel build: name: Build runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 100 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '17' @@ -83,16 +77,8 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - - name: Checkout Gradle Build Cache - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - !~/.gradle/wrapper/dists/**/gradle*.zip - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - gradle-${{ runner.os }}- + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 - name: Build Debug run: | @@ -143,7 +129,7 @@ jobs: find . -name "*release.aab" -type f -exec cp {} "artifacts" \; - name: Archive Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "App-Artifacts" path: artifacts/*