.github/workflows/build.yml #398
This file contains 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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Run tests | |
run: sbt +test scripted | |
- name: Lint | |
run: sbt scalafmtCheckAll | |
- name: Release | |
if: ${{ github.event_name == 'release' }} | |
env: | |
CI_SNAPSHOT_RELEASE: "+publishSigned" | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSWORD }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_USERNAME: soundcloud | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
run: sbt ci-release |