Merge pull request #51 from sauliusvl/lazy-file-size-check #36
Workflow file for this run
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: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Coursier | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/coursier | |
key: ${{ runner.os }}-coursier-${{ hashFiles('**/*.sbt') }} | |
- name: Cache SBT | |
uses: actions/cache@v4 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }} | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v2 | |
- name: Import Sonatype GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.PGP_SECRET }} | |
passphrase: ${{ secrets.PGP_PASSPHRASE }} | |
- name: Publish to Sonatype | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
run: | | |
sbt -Dsbt.color=always -Dsbt.supershell=false publishSigned sonatypeBundleRelease | |
- name: Publish API docs to GitHub Pages | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
sbt -Dsbt.color=always -Dsbt.supershell=false ghpagesPushSite | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |