Skip to content

Override Jackson dependency version (#146) #37

Override Jackson dependency version (#146)

Override Jackson dependency version (#146) #37

Workflow file for this run

name: Release
on:
push:
branches: [master]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- name: Setup Sonatype key
run: |
mkdir -p /tmp/gpg
GNUPGHOME=/tmp/gpg
export GNUPGHOME
gpg --decrypt --batch --yes --passphrase "${{ secrets.SONATYPE_KEY_PASSWORD }}" sonatype.key.gpg | gpg --import
- name: Setup publishing
run: |
cat <<-EOF > sonatype.sbt
credentials in Global += Credentials(
"GnuPG Key ID",
"gpg",
"${{ secrets.SONATYPE_KEY_ID }}",
"ignored"
)
credentials in Global += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
"${{ secrets.SONATYPE_ORG_USER }}",
"${{ secrets.SONATYPE_ORG_PASSWORD }}"
)
EOF
- name: Publish to Maven Central
run: GNUPGHOME=/tmp/gpg SOURCE_DATE_EPOCH=$(date +%s) sbt test releaseTask