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,30 @@ 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+ uses : actions /setup-java@v4
2828 with :
29- java-version : adopt@1.8
29+ distribution : zulu
30+ java-version : 8
31+ cache : sbt
32+
33+ - name : Setup sbt
34+ uses : sbt/setup-sbt@v1
35+
36+ - name : Import signing key
37+ if : env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
38+ env :
39+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
40+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
41+ run : echo $PGP_SECRET | base64 -d -i - | gpg --import
3042
3143 - name : Run back-publish script
44+ env :
45+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
46+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
47+ SONATYPE_CREDENTIAL_HOST : ${{ secrets.SONATYPE_CREDENTIAL_HOST }}
3248 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 publish sonaRelease
You can’t perform that action at this time.
0 commit comments