Skip to content

Commit 59678ea

Browse files
committed
chore: Add back LTS nightlies
1 parent b2850be commit 59678ea

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/publishLts.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Usage:
5+
# SONATYPE_USER=<sonatype user> SONATYPE_PW=<sonatype pw> PGP_PW=<pgp pw> PGP_SECRET=<pgp secret> ./sbtPublish <publish cmd>
6+
7+
# Release command:
8+
RELEASE_CMD="${1:?Missing publish command}"
9+
10+
# Make sure required environment variable are set
11+
: "${SONATYPE_USER:?not set}"
12+
: "${SONATYPE_PW:?not set}"
13+
14+
if [ ! "$NIGHTLYBUILD" = "yes" ] && [ ! "$RELEASEBUILD" = "yes" ]; then
15+
echo "Neither NIGHTLYBUILD nor RELEASEBUILD env var set to \"yes\""
16+
exit 1
17+
fi
18+
19+
# run sbt with the supplied arg
20+
SBT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/sbt"
21+
"$SBT" "$RELEASE_CMD"

.github/workflows/release-maven-artifacts.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,29 @@ jobs:
3838
MAVEN_REPOSITORY_URL : ${{ vars.MAVEN_REPOSITORY_URL }}
3939
NEWNIGHTLY : ${{ vars.NEWNIGHTLY }}
4040
NIGHTLYBUILD : ${{ vars.NIGHTLYBUILD }}
41+
release-maven-lts-artifacts:
42+
runs-on: ubuntu-latest
43+
environment: ${{ inputs.environment }}
44+
steps:
45+
- uses: actions/checkout@v6
46+
with:
47+
repository: scala/scala3-lts
48+
ref: lts-3.3
49+
- uses: actions/setup-java@v5
50+
with:
51+
distribution: 'temurin'
52+
java-version: 8
53+
cache: 'sbt'
54+
- uses: sbt/setup-sbt@v1
55+
- name: Import Scala PGP Key
56+
uses: crazy-max/ghaction-import-gpg@v6
57+
with:
58+
gpg_private_key: ${{ secrets.SCALA_PGP_KEY }}
59+
passphrase : ${{ secrets.SCALA_PGP_PASSPHRASE }}
60+
fingerprint : ${{ vars.SCALA_PGP_FINGERPRINT }}
61+
- name: Publish Artifacts to the Maven Repository
62+
run : ./.github/workflows/publishLts.sh ";project scala3-bootstrapped ;publishSigned ;sonaRelease"
63+
env:
64+
SONATYPE_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
65+
SONATYPE_PW : ${{ secrets.MAVEN_REPOSITORY_TOKEN }}
66+
NIGHTLYBUILD : "yes"

0 commit comments

Comments
 (0)