Merge pull request #238 from blast-hardcheese/console-git-describe-pa… #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
- name: Coursier cache | |
uses: coursier/cache-action@v5 | |
- name: Test | |
run: | | |
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 |