Skip to content

commit-driven release #55

commit-driven release

commit-driven release #55

Workflow file for this run

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 }}