Update scala-library to 2.12.20 #118
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
name: CI | |
on: | |
push: | |
branches: ["master"] | |
tags: ["v*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
cache: sbt | |
distribution: temurin | |
- name: Build site | |
run: sbt "compile; docs/run build --destination $(pwd)/_site" | |
release: | |
name: Release | |
needs: [build] | |
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/master') | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
cache: sbt | |
distribution: temurin | |
- name: Publish ${{ github.ref }} | |
run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
- name: Build site | |
run: sbt "compile; docs/run build --destination $(pwd)/_site" | |
- name: Publish gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site |