File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 tag :
7- description : ' Tag to back-publish. Example: v0.13.2 '
7+ description : ' Tag to back-publish. Example: v0.13.4 '
88 required : true
99 scala :
10- description : ' Scala version. Example: 2.13.8 '
10+ description : ' Scala version. Example: 2.13.18 '
1111 required : true
1212
1313env :
@@ -19,14 +19,27 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout current branch (full)
22- uses : actions/checkout@v2
22+ uses : actions/checkout@v4
2323 with :
2424 fetch-depth : 0
2525
26- - name : Setup Java and Scala
27- uses : olafurpg/setup-scala@v13
26+ - name : Setup Java (zulu@8)
27+ if : matrix.java == 'zulu@8'
28+ uses : actions/setup-java@v4
2829 with :
29- java-version : adopt@1.8
30+ distribution : zulu
31+ java-version : 8
32+ cache : sbt
33+
34+ - name : Setup sbt
35+ uses : sbt/setup-sbt@v1
36+
37+ - name : Import signing key
38+ if : env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
39+ env :
40+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
41+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
42+ run : echo $PGP_SECRET | base64 -d -i - | gpg --import
3043
3144 - name : Run back-publish script
3245 run : ./scripts/back-publish -t ${{ github.event.inputs.tag }} -s ${{ github.event.inputs.scala }}
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ if [ "$JAVA_VERSION" -ne 8 ]; then
3434fi
3535
3636git checkout $TAG
37- sbt ++$SCALA_VERSION clean test publish sonatypeBundleRelease
37+ sbt ++$SCALA_VERSION clean test publishSigned sonaUpload sonaRelease
You can’t perform that action at this time.
0 commit comments