pekko/.github/workflows/publish.yml
Arnout Engelen 6e0158e221
Auto-publish backported docs (#30422)
* Auto-publish backported docs

* publish docs on ubuntu 20.04

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>

* Use the latest 1.11 to publish docs

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>
2021-08-05 18:19:00 +02:00

37 lines
1.1 KiB
YAML

name: Publish
on:
push:
branches:
- master
# for testing the GH Action without merging to master,
# in some cases
- test-publish-snapshots
tags: ["*"]
jobs:
sbt:
name: sbt publish
runs-on: ubuntu-18.04
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 whitesourceCheckPolicies
sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
WHITESOURCE_PASSWORD: ${{ secrets.WHITESOURCE_PASSWORD }}