Skip to content

Release: new CLI version using JReleaser #16

Release: new CLI version using JReleaser

Release: new CLI version using JReleaser #16

Workflow file for this run

name: 'Release: new CLI version using JReleaser'
on:
workflow_dispatch:
permissions:
id-token: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: ${{ secrets.GCP_STREAMX_RELEASES_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_STREAMX_RELEASES_READ_SA }}
- name: Configure Git
run: |
git config --global user.email "github.actions@streamx.dev"
git config --global user.name "${GITHUB_ACTOR}"
mkdir -p ~/.ssh
printf '%s\n' "${{ secrets.SSH_SECRET_KEY }}" > ~/.ssh/id_rsa
chmod 0600 ~/.ssh/id_rsa
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Release prepare
id: prepare-release
run: |
./mvnw -B release:prepare
- name: Release perform
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.JRELEASER_HOMEBREW_GITHUB_TOKEN }}
JRELEASER_SCOOP_GITHUB_TOKEN: ${{ secrets.JRELEASER_SCOOP_GITHUB_TOKEN }}
run: |
./mvnw -B release:perform -P release
- name: Jira release
uses: streamx-dev/streamx-common-github-actions/.github/actions/jira-release@main
with:
atlassianCloudUser: ${{ secrets.ATLASSIAN_CLOUD_USER }}
atlassianCloudApiKey: ${{ secrets.ATLASSIAN_CLOUD_APIKEY }}
atlassianCloudDomain: ${{ secrets.ATLASSIAN_CLOUD_DOMAIN }}
atlassianCloudJiraProject: ${{ vars.ATLASSIAN_CLOUD_JIRA_PROJECT }}
releaseNamePrefix: ${{ github.event.repository.name }}