diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c008fce40..a442ef119 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,33 +64,27 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - java-version: '8' + java-version: '17' distribution: 'temurin' + cache: 'sbt' - - name: Cache SBT - uses: actions/cache@v3 + - name: Uncache assembly + uses: actions/cache/restore@v3 with: path: | - ~/.ivy2/cache - ~/.sbt - key: ${{ runner.os }}-sbt-${{ hashFiles('*.sbt') }}-${{ hashFiles('project/**') }} - - - name: Cache assembly - uses: actions/cache@v3 - with: - path: | - ~/**/target/**/libs/*.jar - key: ${{ runner.os }}-assembly-${{ matrix.module }}-${{ github.run_id }} + ~/**/target/libs/*.jar + key: assembly-${{ matrix.module }}-${{ github.run_id }} + fail-on-cache-miss: true - name: Package Connector shell: bash run: | FOLDER=kafka-connect-${{ matrix.module }}-${{ env.TAG }} mkdir -p $FOLDER - cp **/target/**/libs/*.jar LICENSE $FOLDER/ + cp **/target/libs/*.jar LICENSE $FOLDER/ zip -r "$FOLDER.zip" $FOLDER/ - name: Upload binaries to release