From fc96d213df29f2e1dbc50afd289f005fd55748cf Mon Sep 17 00:00:00 2001 From: Brian Holt Date: Fri, 30 Jun 2023 10:09:07 -0500 Subject: [PATCH] publish from the 3.x branch instead of main --- .github/workflows/ci.yml | 8 ++++---- build.sbt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11403a79..04fa47a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,15 +70,15 @@ jobs: - run: sbt '++ ${{ matrix.scala }}' test mimaReportBinaryIssues doc - name: Make target directories - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/3.x') run: mkdir -p core/js/target core/jvm/target aws-java-sdk2/target project/target - name: Compress target directories - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/3.x') run: tar cf targets.tar core/js/target core/jvm/target aws-java-sdk2/target project/target - name: Upload target directories - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/3.x') uses: actions/upload-artifact@v3 with: name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }} @@ -87,7 +87,7 @@ jobs: publish: name: Publish Artifacts needs: [build] - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/3.x') strategy: matrix: os: [ubuntu-latest] diff --git a/build.sbt b/build.sbt index 3a32de82..fe3ec8ae 100644 --- a/build.sbt +++ b/build.sbt @@ -12,6 +12,7 @@ ThisBuild / developers := List( ) ) ThisBuild / tlBaseVersion := "3.0" +ThisBuild / tlCiReleaseBranches := Seq("3.x") ThisBuild / crossScalaVersions := Seq("3.3.0", "2.13.11", "2.12.18") ThisBuild / scalaVersion := crossScalaVersions.value.head ThisBuild / startYear := Option(2018)