build: bump GH actions (#1883) #376
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| tags: ["*"] | |
| permissions: | |
| contents: read # allow actions/checkout | |
| jobs: | |
| release: | |
| # runs on main repo only | |
| if: github.event.repository.fork == false | |
| name: Release | |
| # the release environment provides access to secrets required in the release process | |
| # https://github.com/akka/alpakka-kafka/settings/environments/84275678/edit | |
| environment: release | |
| runs-on: Akka-Default | |
| 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: Checkout GitHub merge | |
| if: github.event.pull_request | |
| run: |- | |
| git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch | |
| git checkout scratch | |
| - name: Run akka/github-actions-scripts | |
| uses: akka/github-actions-scripts/setup_global_resolver@main | |
| - 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.0.17 | |
| - name: Publish artifacts for all Scala versions | |
| env: | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
| PUBLISH_USER: ${{ secrets.PUBLISH_USER }} | |
| PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | |
| run: sbt +publishSigned | |
| 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: Run akka/github-actions-scripts | |
| uses: akka/github-actions-scripts/setup_global_resolver@main | |
| - 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: 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 }} |