Skip to content

Commit 5437f12

Browse files
authored
Merge pull request #167 from gokhanoner/sbt-ci-release
Sbt ci release
2 parents 6b916e6 + 8535612 commit 5437f12

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,23 @@ on:
88
jobs:
99
build_sbt_1_0:
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
- uses: actions/checkout@v1
12+
- uses: actions/[email protected]
13+
with:
14+
fetch-depth: 0
15+
16+
# setup build environment
17+
- uses: coursier/cache-action@v6
18+
- uses: olafurpg/setup-scala@v13
1419
- name: sbt test and packagedArtifacts for sbt 1.x
1520
run: |
1621
sbt test packagedArtifacts
1722
- name: sbt Publish for sbt 1.x
18-
env:
19-
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
20-
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
2123
run: |
22-
echo 'sbt clean publish"'
23-
sbt clean publish
24+
echo 'sbt ci-release'
25+
sbt ci-release
26+
env:
27+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
28+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
29+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
30+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

project/plugins.sbt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
2-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
3-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
42
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
53

64
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")

0 commit comments

Comments
 (0)