Cut release #8
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: Cut release | |
on: | |
workflow_dispatch: | |
inputs: | |
release-version: | |
description: "Version for the tagged release" | |
required: true | |
next-version: | |
description: "Next version" | |
required: true | |
jobs: | |
cut-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: git config | |
run: | | |
git config --global user.name "glow-release[bot]" | |
git config --global user.email "[email protected]" | |
- name: Cut release with SBT | |
run: "sbt 'set releaseType := \"cutRelease\"' 'release release-version ${{ inputs.release-version }} next-version ${{ inputs.next-version }}'" | |
- name: Push release tag | |
run: git push origin v${{ inputs.release-version }} | |
- name: Open pull request for next version | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
signoff: true | |
branch: releases/${{ inputs.release-version }} |