Skip to content

Release v1.18.0

Release v1.18.0 #26

Workflow file for this run

name: Release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
server-id: central
server-username: MAVEN_CENTRAL_PORTAL_USERNAME
server-password: MAVEN_CENTRAL_PORTAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish to Maven Central
run: mvn deploy -DskipTests -Prelease --batch-mode --no-transfer-progress
env:
MAVEN_CENTRAL_PORTAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }}
MAVEN_CENTRAL_PORTAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PORTAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Get version from tag
id: get-version
run: echo "version-without-v=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Get changelog release info
id: changelog
uses: release-flow/keep-a-changelog-action@74931dec7ecdbfc8e38ac9ae7e8dd84c08db2f32 # v3.0.0
with:
command: query
version: ${{ steps.get-version.outputs.version-without-v }}
- name: Create GitHub Release
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
with:
name: ${{ steps.changelog.outputs.version }}
body: ${{ steps.changelog.outputs.release-notes }}
files: sonar-delphi-plugin/target/sonar-delphi-plugin-${{ steps.changelog.outputs.version }}.jar