build: bump GH actions (#190) #123
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: | |
| branches: | |
| - main | |
| tags: [ "*" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| sbt: | |
| name: sbt publish | |
| runs-on: Akka-Default | |
| if: github.event.repository.fork == false | |
| steps: | |
| - name: Checkout | |
| # https://github.com/actions/checkout/releases | |
| uses: actions/checkout@v6 | |
| with: | |
| # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
| fetch-depth: 0 | |
| - name: Cache Coursier cache | |
| # https://github.com/coursier/cache-action/releases | |
| uses: coursier/cache-action@v8.1.0 | |
| - name: Set up JDK 11 | |
| # https://github.com/coursier/setup-action/releases | |
| uses: coursier/setup-action@v3.0.0 | |
| with: | |
| jvm: temurin:1.11 | |
| - name: Run akka/github-actions-scripts | |
| uses: akka/github-actions-scripts/setup_global_resolver@main | |
| - name: Publish | |
| run: |- | |
| sbt +publish | |
| env: | |
| PUBLISH_USER: ${{ secrets.PUBLISH_USER }} | |
| PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | |
| documentation: | |
| name: Documentation | |
| runs-on: Akka-Default | |
| if: github.event.repository.fork == false | |
| steps: | |
| - name: Checkout | |
| # https://github.com/actions/checkout/releases | |
| uses: actions/checkout@v6 | |
| with: | |
| # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
| fetch-depth: 0 | |
| - name: Set up JDK 25 | |
| # https://github.com/coursier/setup-action/releases | |
| uses: coursier/setup-action@v3.0.0 | |
| with: | |
| jvm: temurin:1.25 | |
| - name: Run akka/github-actions-scripts | |
| uses: akka/github-actions-scripts/setup_global_resolver@main | |
| - name: Publish | |
| run: |- | |
| eval "$(ssh-agent -s)" | |
| echo $AKKA_RSYNC_GUSTAV | base64 -d > .github/id_rsa | |
| chmod 600 .github/id_rsa | |
| ssh-add .github/id_rsa | |
| sbt publishRsync | |
| env: | |
| AKKA_RSYNC_GUSTAV: ${{ secrets.AKKA_RSYNC_GUSTAV }} |