Release v2.2.0 #13
Workflow file for this run
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: Build and Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v[0-9]*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build JAR and Release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 22 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '22' | |
distribution: 'oracle' | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build JAR with Maven | |
run: mvn clean package -DskipTests --file pom.xml | |
- name: Get Changelog Entry | |
id: changelog_reader | |
uses: mindsers/changelog-reader-action@v2 | |
with: | |
validation_level: warn | |
version: ${{ steps.tag_name.outputs.current_version }} | |
path: ./CHANGELOG.md | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
./modal-dialog/target/*.jar | |
./demo/target/modal-dialog-demo-*.jar | |
tag_name: ${{ github.ref_name }} | |
name: ${{ github.ref_name }} | |
body: ${{ steps.changelog_reader.outputs.changes }} | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |