Skip to content

Release 0.1.6

Release 0.1.6 #18

Workflow file for this run

name: Release WildFly gRPC
on:
push:
tags:
- 'v*'
jobs:
deploy:
name: Deploy Maven Artifacts
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
- name: Install
id: install
run: $MVN install
- name: Set up Maven Settings
id: setup-maven-settings
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: 17
distribution: temurin
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Deploy
id: deploy
run: $MVN deploy -P release
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
release:
name: Create GitHub Release
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Get Version
id: get-version
uses: battila7/get-version-action@v2.3.0
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Read Changelog
id: read-changelog
uses: mindsers/changelog-reader-action@v2
with:
path: ./CHANGELOG.md
version: ${{ steps.get-version.outputs.version-without-v }}
- name: Create GitHub Release
id: create-gh-release
uses: ncipollo/release-action@v1.14.0
with:
tag: ${{ steps.get-version.outputs.version }}
name: WildFly gRPC ${{ steps.get-version.outputs.version-without-v }}.Final
body: ${{ steps.read-changelog.outputs.changes }}
draft: false
discussionCategory: Announcements
prerelease: false