diff --git a/.github/workflows/sdk-reference.yaml b/.github/workflows/sdk-reference.yaml index b58afef8..14b3776a 100644 --- a/.github/workflows/sdk-reference.yaml +++ b/.github/workflows/sdk-reference.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest environment: name: sdk-reference - url: ${{ steps.deploy.outputs.url }} + url: ${{ steps.deploy.outputs.deployment-url }} steps: - uses: actions/checkout@v3 - name: Setup Java 8 @@ -38,12 +38,10 @@ jobs: echo "CLOUDFLARE_BRANCH=$BRANCH" >> "$GITHUB_ENV" fi - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@v1 + # cloudflare/pages-action was removed from GitHub; wrangler-action is its replacement. + uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3 id: deploy with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: nylas-java-sdk-reference - directory: build/dokka/html - wranglerVersion: "3" - branch: ${{ env.CLOUDFLARE_BRANCH }} + command: pages deploy build/dokka/html --project-name=nylas-java-sdk-reference --branch=${{ env.CLOUDFLARE_BRANCH }} diff --git a/CHANGELOG.md b/CHANGELOG.md index b948cce3..8c969993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * Contact metadata request/response models and `metadata_pair` filtering. * `contact.updated` and `contact.deleted` webhook trigger constants with iCloud and Yahoo compatibility documentation. +### Fixed +* Building from source no longer fails when JDK 8 is not installed locally: Gradle now downloads the JDK 8 toolchain required by the build (foojay toolchain resolver). This also fixes CodeQL autobuild on GitHub's current `ubuntu-latest` runners. +* SDK reference docs deployment now uses `cloudflare/wrangler-action`, replacing the removed `cloudflare/pages-action`. + ## [v2.18.1] - Release 2026-08-18 ### Added diff --git a/settings.gradle.kts b/settings.gradle.kts index 5102999f..287a7927 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -7,6 +7,12 @@ * in the user manual at https://docs.gradle.org/5.4/userguide/multi_project_builds.html */ +plugins { + // Downloads the JDK 8 toolchain required by jvmToolchain(8) when it is not installed locally + // (e.g. GitHub's ubuntu-latest image used by CodeQL autobuild no longer ships JDK 8). + id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" +} + rootProject.name = "nylas" // Include the examples subproject