automated github release build

This commit is contained in:
Oliver.Warz@pdv.de 2022-06-18 13:51:24 +02:00
parent 027eff4332
commit 8eab93bf77
4 changed files with 22 additions and 10 deletions

View File

@ -1,18 +1,19 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
# https://stackoverflow.com/questions/58879480/how-to-automate-versioning-of-maven-project-in-github
name: Maven Package
name: Publish maven package to Github Packages
on:
push:
tags:
- '*'
# on:
# push:
# tags:
# - '*'
# on:
# push:
# branches: [main]
#on:
# release:
# types: [created]
on:
release:
types: [created]
jobs:
build:
@ -31,7 +32,10 @@ jobs:
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- if: github.event.release
name: Update version in pom.xml (Release only)
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
-
- name: Build with Maven
run: mvn -B package --file pom.xml

View File

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.9.9] - 2022-06-18
### Changed
- automated github release build
## [0.9.8] - 2022-06-14
### Fixed
- uptake dependency-check-maven 7.1.1

View File

@ -20,6 +20,10 @@ https://github.com/javamelody/javamelody/wiki
* check dependent libraries for updates
* run tests and build
## Release
* create a tag with version number
* create a github release
## Installation
* rename target/fop4apex*.war to fop4apex.war
* copy fop4apex.war to tomcat webapps folder

View File

@ -6,7 +6,7 @@
<groupId>de.pdv.apex</groupId>
<artifactId>fop4apex</artifactId>
<version>0.9.8</version>
<version>0.9.9-SNAPSHOT</version>
<name>fop4apex</name>
<packaging>war</packaging>
<url>https://www.pdv.de</url>