correct command #45
Workflow file for this run
This file contains hidden or 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 Central Portal | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| run: | | |
| sbt -Dsbt.color=always -Dsbt.supershell=false publishSigned sonaRelease | |
| - name: Publish API docs to GitHub Pages | |
| run: | | |
| git config --global user.email "github-action@users.noreply.github.com" | |
| git config --global user.name "GitHub Action" | |
| sbt -Dsbt.color=always -Dsbt.supershell=false ghpagesPushSite | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |