Skip to content

Commit

Permalink
Try ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bijan Chokoufe Nejad committed Aug 18, 2020
1 parent bcbb591 commit 9dc55b6
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,14 @@ jobs:
SONATYPE_SBT: ${{ secrets.SONATYPE_SBT }}

steps:
- uses: actions/checkout@v2
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v2
- name: Setup GPG Keys
run: |
echo $GPG_KEYS | base64 -di > keys.zip
unzip -d project/.gnupg keys.zip
mkdir -p ~/.sbt/1.0
echo $SONATYPE_SBT > ~/.sbt/1.0/sonatype.sbt
- name: Setup version in SBT
run: |
VERSION=${GITHUB_REF/refs\/tags\//}
echo $VERSION
sed "s/unstable-SNAPSHOT/${VERSION}/" build.sbt > build.sbt.2
mv build.sbt.2 build.sbt
- name: Test & Release
run: |
VERSION=${GITHUB_REF/refs\/tags\//}
if [[ $VERSION =~ \-SNAPSHOT$ ]]; then
sbt test +publishSigned
else
sbt test +publishSigned sonatypeRelease
fi
run: sbt ci-release

0 comments on commit 9dc55b6

Please sign in to comment.