Skip to content

Commit 9dc55b6

Browse files
author
Bijan Chokoufe Nejad
committed
Try ci-release
1 parent bcbb591 commit 9dc55b6

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,14 @@ jobs:
1616
SONATYPE_SBT: ${{ secrets.SONATYPE_SBT }}
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Setup JDK 11
21-
uses: actions/setup-java@v1
22-
with:
23-
java-version: 11
19+
- uses: actions/checkout@v1
20+
- uses: olafurpg/setup-scala@v2
2421
- name: Setup GPG Keys
2522
run: |
2623
echo $GPG_KEYS | base64 -di > keys.zip
2724
unzip -d project/.gnupg keys.zip
2825
mkdir -p ~/.sbt/1.0
2926
echo $SONATYPE_SBT > ~/.sbt/1.0/sonatype.sbt
30-
- name: Setup version in SBT
31-
run: |
32-
VERSION=${GITHUB_REF/refs\/tags\//}
33-
echo $VERSION
34-
sed "s/unstable-SNAPSHOT/${VERSION}/" build.sbt > build.sbt.2
35-
mv build.sbt.2 build.sbt
3627
- name: Test & Release
37-
run: |
38-
VERSION=${GITHUB_REF/refs\/tags\//}
39-
if [[ $VERSION =~ \-SNAPSHOT$ ]]; then
40-
sbt test +publishSigned
41-
else
42-
sbt test +publishSigned sonatypeRelease
43-
fi
28+
run: sbt ci-release
4429

0 commit comments

Comments
 (0)