Skip to content

Commit ab951fa

Browse files
authored
Merge pull request #318 from typelevel/unbitrot
2 parents b1d3cd7 + 56c046b commit ab951fa

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/backpublish.yml

Lines changed: 22 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,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 }}

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 publish sonaRelease

0 commit comments

Comments
 (0)