File tree Expand file tree Collapse file tree 4 files changed +44
-18
lines changed
Expand file tree Collapse file tree 4 files changed +44
-18
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ jobs:
2020 runs-on : ubuntu-latest
2121 steps :
2222 - name : Checkout
23- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
2424 - name : Setup
2525 uses : olafurpg/setup-scala@v11
2626 with :
2727 java-version : " ${{ matrix.java }}"
2828 - name : Cache SBT
29- uses : actions/cache@v2
29+ uses : actions/cache@v3
3030 with :
3131 path : |
3232 ~/.ivy2/cache
Original file line number Diff line number Diff line change 1+ ---
2+ name : Release
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+ env :
8+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
9+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
10+ PGP_PASSPHRASE : ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
11+ PGP_SECRET : ${{ secrets.GPG_SECRET_KEY }}
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v3
18+ - name : Setup
19+ uses : olafurpg/setup-scala@v11
20+ with :
21+ java-version : openjdk@1.11
22+ - name : Cache SBT
23+ uses : actions/cache@v3
24+ with :
25+ path : |
26+ ~/.ivy2/cache
27+ ~/.sbt
28+ key : ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
29+ - name : Set version
30+ run : |
31+ VERSION=${{ github.ref_name }}
32+ echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
33+ - name : Import GPG key
34+ uses : crazy-max/ghaction-import-gpg@v5
35+ with :
36+ gpg_private_key : ${{ secrets.GPG_SECRET_KEY }}
37+ passphrase : ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
38+ - name : Release
39+ run : sbt 'set version:="${{ env.VERSION }}";release cross with-defaults skip-tests'
40+ shell : bash
41+ timeout-minutes : 10
Original file line number Diff line number Diff line change @@ -41,15 +41,8 @@ import ReleaseTransformations._
4141
4242releaseProcess := Seq [ReleaseStep ](
4343 checkSnapshotDependencies,
44- inquireVersions,
4544 runClean,
4645 runTest,
47- setReleaseVersion,
48- commitReleaseVersion,
49- tagRelease,
5046 publishArtifacts,
51- setNextVersion,
52- commitNextVersion,
53- releaseStepCommand(" sonatypeReleaseAll" ),
54- pushChanges
47+ releaseStepCommand(" sonatypeReleaseAll" )
5548)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments