Release #46
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: | |
workflow_run: | |
workflows: ["Test"] | |
branches: [ master ] | |
types: | |
- completed | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Check Skip Commit | |
id: checkskip | |
run: if [[ $(git log -1 --pretty=format:"%s") =~ "\[skip release\]" ]]; then false; else true; fi | |
- name: Set up JDK 8 | |
if: steps.checkskip.conclusion == 'success' | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Cache SBT | |
if: steps.checkskip.conclusion == 'success' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt', 'project/**') }} | |
- name: Push git tag | |
if: steps.checkskip.conclusion == 'success' | |
run: ./.github/scripts/push-tag.sh | |
- name: Deploy | |
if: steps.checkskip.conclusion == 'success' | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_KEY }} | |
run: ./.github/scripts/deploy.sh |