Skip to content

Commit 0595998

Browse files
authored
Update release.yml to install sbt
1 parent d34ac70 commit 0595998

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ jobs:
1414
with:
1515
distribution: temurin
1616
java-version: 11
17+
- name: Setup SBT
18+
run: |
19+
# Make sure ca-certificates and gnupg are installed (often required for adding new repos)
20+
sudo apt-get update
21+
sudo apt-get install -y ca-certificates gnupg
22+
23+
# Add the sbt repositories to apt sources
24+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
25+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
26+
27+
# Import the Scala SBT public key
28+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" \
29+
| sudo apt-key add -
30+
31+
# Now update and install
32+
sudo apt-get update
33+
sudo apt-get install -y sbt
1734
- env:
1835
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
1936
PGP_SECRET: ${{ secrets.PGP_SECRET }}

0 commit comments

Comments
 (0)