diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d49533b..a97935f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,52 +50,3 @@ jobs: - name: Build project run: sbt '++ ${{ matrix.scala }}; testFull' - - - name: Compress target directories - run: tar cf targets.tar target/out/jvm/scala-3.10.0/slick-testkit-example project/target - - - name: Upload target directories - uses: actions/upload-artifact@v7 - with: - name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }} - path: targets.tar - - publish: - name: Publish Artifacts - needs: [build] - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main') - strategy: - matrix: - os: [ubuntu-latest] - scala: [3.10.0] - java: [temurin@17] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout current branch (full) - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - - name: Setup Java (temurin@17) - if: matrix.java == 'temurin@17' - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: 17 - cache: sbt - - - name: Setup sbt - uses: sbt/setup-sbt@v1 - - - name: Download target directories (3.10.0) - uses: actions/download-artifact@v8 - with: - name: target-${{ matrix.os }}-3.10.0-${{ matrix.java }} - - - name: Inflate target directories (3.10.0) - run: | - tar xf targets.tar - rm targets.tar - - - name: Publish project - run: sbt +publish diff --git a/build.sbt b/build.sbt index 50251cb..782c1b6 100644 --- a/build.sbt +++ b/build.sbt @@ -34,3 +34,5 @@ ThisBuild / githubWorkflowBuildPreamble += ThisBuild / githubWorkflowBuild := Seq( WorkflowStep.Sbt(List("testFull"), name = Some("Build project")) ) + +ThisBuild / githubWorkflowPublishTargetBranches := Seq()