Skip to content

Commit dccb7f7

Browse files
committed
Knock off backpublish bitrot
1 parent b1d3cd7 commit dccb7f7

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

.github/workflows/backpublish.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
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

1313
env:
@@ -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 }}

scripts/back-publish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ if [ "$JAVA_VERSION" -ne 8 ]; then
3434
fi
3535

3636
git checkout $TAG
37-
sbt ++$SCALA_VERSION clean test publish sonatypeBundleRelease
37+
sbt ++$SCALA_VERSION clean test publishSigned sonaUpload sonaRelease

0 commit comments

Comments
 (0)