Skip to content

release

release #138

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
version:
description: "New semver version without cdp suffix"
required: true
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
# Docker is not installed on GitHub's MacOS hosted workers due to licensing issues
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker
colima start
# For testcontainers to find the Colima socket
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- name: Compute full version (with protocol version)
run: echo "fullVersion=${{ inputs.version }}-$(cat protocol/version.txt)" >> $GITHUB_OUTPUT
id: compute-version
- name: Release
uses: joffrey-bion/gradle-library-release-action@v1
with:
version: ${{ steps.compute-version.outputs.fullVersion }}
gpg-signing-key: ${{ secrets.GPG_SECRET_ASCII_ARMORED }}
gpg-signing-password: ${{ secrets.GPG_PASSWORD }}
sonatype-username: ${{ secrets.OSSRH_USER_TOKEN }}
sonatype-password: ${{ secrets.OSSRH_KEY }}