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
|
||||
# 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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user