File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 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 "
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments