Skip to content

Commit fda2c56

Browse files
authored
Use setup-sbt in release workflow
1 parent 3dfd256 commit fda2c56

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/master-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
tags: ["*"]
66
jobs:
77
release:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-latest
99
if: github.repository == 'scapegoat-scala/scapegoat'
1010
steps:
1111
- uses: actions/checkout@v4
1212
- run: git fetch --prune --unshallow
1313
- uses: actions/setup-java@v4
1414
with:
15+
cache: sbt
1516
distribution: adopt
1617
java-version: 8
1718
- run: |
@@ -25,18 +26,17 @@ jobs:
2526
echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
2627
env:
2728
PGP_SECRET: ${{secrets.PGP_SECRET}}
29+
- uses: sbt/setup-sbt@v1
2830
- uses: actions/cache@v4
2931
with:
3032
path: ~/.ivy2/cache
3133
key: ivy-${{hashFiles('**/*.sbt')}}
32-
restore-keys: |
33-
ivy-
34+
restore-keys: ivy-
3435
- uses: actions/cache@v4
3536
with:
3637
path: ~/.sbt
3738
key: sbt-${{hashFiles('**/*.sbt')}}-${{hashFiles('project/build.properties')}}
38-
restore-keys: |
39-
sbt-
39+
restore-keys: sbt-
4040
- run: sbt ci-release
4141
env:
4242
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}

0 commit comments

Comments
 (0)