automated github release build
This commit is contained in:
parent
027eff4332
commit
8eab93bf77
22
.github/workflows/maven-publish.yml
vendored
22
.github/workflows/maven-publish.yml
vendored
@ -1,18 +1,19 @@
|
|||||||
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
|
# 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
|
# 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:
|
# on:
|
||||||
push:
|
# push:
|
||||||
tags:
|
# tags:
|
||||||
- '*'
|
# - '*'
|
||||||
# on:
|
# on:
|
||||||
# push:
|
# push:
|
||||||
# branches: [main]
|
# branches: [main]
|
||||||
#on:
|
on:
|
||||||
# release:
|
release:
|
||||||
# types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -31,7 +32,10 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
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
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.9.9] - 2022-06-18
|
||||||
|
### Changed
|
||||||
|
- automated github release build
|
||||||
|
|
||||||
## [0.9.8] - 2022-06-14
|
## [0.9.8] - 2022-06-14
|
||||||
### Fixed
|
### Fixed
|
||||||
- uptake dependency-check-maven 7.1.1
|
- uptake dependency-check-maven 7.1.1
|
||||||
|
|||||||
@ -20,6 +20,10 @@ https://github.com/javamelody/javamelody/wiki
|
|||||||
* check dependent libraries for updates
|
* check dependent libraries for updates
|
||||||
* run tests and build
|
* run tests and build
|
||||||
|
|
||||||
|
## Release
|
||||||
|
* create a tag with version number
|
||||||
|
* create a github release
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
* rename target/fop4apex*.war to fop4apex.war
|
* rename target/fop4apex*.war to fop4apex.war
|
||||||
* copy fop4apex.war to tomcat webapps folder
|
* copy fop4apex.war to tomcat webapps folder
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>de.pdv.apex</groupId>
|
<groupId>de.pdv.apex</groupId>
|
||||||
<artifactId>fop4apex</artifactId>
|
<artifactId>fop4apex</artifactId>
|
||||||
<version>0.9.8</version>
|
<version>0.9.9-SNAPSHOT</version>
|
||||||
<name>fop4apex</name>
|
<name>fop4apex</name>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<url>https://www.pdv.de</url>
|
<url>https://www.pdv.de</url>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user