pekko/.github/workflows/publish.yml
Arnout Engelen d703a2afe0
'master' to 'main' (#30714)
* 'master' to 'main'

* Repo reference in docs

* Found another in the issue template
2021-09-25 09:39:36 +02:00

37 lines
1 KiB
YAML

name: Publish
on:
push:
branches:
- master
- main
# for testing the GH Action without merging to main,
# in some cases
- test-publish-snapshots
tags: ["*"]
jobs:
sbt:
name: sbt publish
runs-on: ubuntu-20.04
if: github.repository == 'akka/akka'
steps:
- name: Checkout
uses: actions/checkout@v2
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 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11.0-9
- name: Publish
run: |-
sudo apt-get install graphviz
sbt +mimaReportBinaryIssues
sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}