commit-driven release #55
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 | |
# https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#manually-running-a-workflow | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v[0-9]+.*' | |
# fixme add requirement that tests from given commit hash already passed (so that we don't have to add test stage here) | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Release | |
run: | | |
echo "$PGP_KEY" | gpg --import | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
sbt publishSigned sonatypeRelease | |
env: | |
MVN_PASSWORD: ${{ secrets.MVN_PASSWORD }} | |
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} | |
PGP_KEY: ${{ secrets.PGP_KEY }} |