Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/publishLts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e

# Usage:
# SONATYPE_USER=<sonatype user> SONATYPE_PW=<sonatype pw> PGP_PW=<pgp pw> PGP_SECRET=<pgp secret> ./sbtPublish <publish cmd>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still uses PGP_PW and PGP_SECRET not used in this script.
I think it would better to continue using the old script if possible, should be possible if we'd restore changes from release-3.8.0 mentioned below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might not need the script altogether. I will just use sbt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got back to the state in 3.7.4 tag


# Release command:
RELEASE_CMD="${1:?Missing publish command}"

# Make sure required environment variable are set
: "${SONATYPE_USER:?not set}"
: "${SONATYPE_PW:?not set}"

if [ ! "$NIGHTLYBUILD" = "yes" ] && [ ! "$RELEASEBUILD" = "yes" ]; then
echo "Neither NIGHTLYBUILD nor RELEASEBUILD env var set to \"yes\""
exit 1
fi

# run sbt with the supplied arg
SBT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/sbt"
"$SBT" "$RELEASE_CMD"
26 changes: 26 additions & 0 deletions .github/workflows/release-maven-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,29 @@ jobs:
MAVEN_REPOSITORY_URL : ${{ vars.MAVEN_REPOSITORY_URL }}
NEWNIGHTLY : ${{ vars.NEWNIGHTLY }}
NIGHTLYBUILD : ${{ vars.NIGHTLYBUILD }}
release-maven-lts-artifacts:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v6
with:
repository: scala/scala3-lts
ref: lts-3.3
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- name: Publish Artifacts to the Maven Repository
run : ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaRelease"
env:
SONATYPE_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
SONATYPE_PW : ${{ secrets.MAVEN_REPOSITORY_TOKEN }}
MAVEN_REPOSITORY_HOST : ${{ vars.MAVEN_REPOSITORY_HOST }}
MAVEN_REPOSITORY_REALM: ${{ vars.MAVEN_REPOSITORY_REALM }}
MAVEN_REPOSITORY_URL : ${{ vars.MAVEN_REPOSITORY_URL }}
NEWNIGHTLY : ${{ vars.NEWNIGHTLY }}
NIGHTLYBUILD : ${{ vars.NIGHTLYBUILD }}
PGP_PW : ${{ secrets.PGP_PW }}
PGP_SECRET : ${{ secrets.PGP_SECRET }}
Loading