v0.6.5 #61
Workflow file for this run
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Install jekyll | |
run: gem install jekyll -v 4.0.0 | |
- name: Install GPG | |
uses: olafurpg/setup-gpg@v3 | |
- name: Compile | |
run: sbt +compile | |
- name: Run tests | |
run: sbt +test | |
- name: Run checks | |
run: sbt check | |
- name: Release | |
env: | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
run: sbt ci-release | |
- name: Publish microsite | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" | |
run: | | |
eval "$(ssh-agent -s)" | |
ssh-add - <<< "${DEPLOY_KEY}" | |
git config --global user.email "slog4s-bot@github.com" | |
git config --global user.name "Release bot" | |
sbt site/publishMicrosite |