Skip to content

Merge pull request #263 from scala-steward/update/sbt-ci-release-1.8.0 #33

Merge pull request #263 from scala-steward/update/sbt-ci-release-1.8.0

Merge pull request #263 from scala-steward/update/sbt-ci-release-1.8.0 #33

Workflow file for this run

name: Publish
on:
push:
branches:
- main
tags: ["*"]
jobs:
build:
runs-on: ubuntu-latest
env:
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Test
run: |
gpg --import test-key.gpg
sbt +test +packagedArtifacts
- name: Release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
CI_CLEAN: clean
CI_RELEASE: +publishSigned
run: |
sbt ci-release