From 64927ccd974e36f2febe53f78a6c8b4fa374d9f7 Mon Sep 17 00:00:00 2001 From: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:07:43 +0100 Subject: [PATCH] Fix publish CI --- .github/workflows/ci.yml | 4 ++++ build.sbt | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfe920e14..ac71ddbc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -202,6 +202,10 @@ jobs: tar xf targets.tar rm targets.tar + - uses: coursier/setup-action@v1 + with: + apps: sbt + - name: Release env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} diff --git a/build.sbt b/build.sbt index 79099fff0..28eefe636 100644 --- a/build.sbt +++ b/build.sbt @@ -56,6 +56,7 @@ ThisBuild / githubWorkflowAddedJobs := ThisBuild / githubWorkflowTargetTags ++= Seq("v*") ThisBuild / githubWorkflowPublishTargetBranches += RefPredicate.StartsWith(Ref.Tag("v")) +ThisBuild / githubWorkflowPublishPreamble := Seq(coursierSetup) ThisBuild / githubWorkflowPublish := Seq( WorkflowStep.Sbt(