mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 06:07:33 +00:00
Build Site and fix 1288 (#1289)
Besides a fix for #1288 the change also contains * a respective CI build (`mvn ... site`) to detect such problems early in the future * a simplification for GH CI triggers (build on each push, not only master and PRs) The latter leads to CI builds for each development change (which is a major purpose of an automatic build and helps in particular for forks/new contributors who cannot issue a automatic build by creating a PR). Having said that, the respective commit could be dropped if there is a good reason not to follow this practice. Fixes #1288
This commit is contained in:
29
.github/workflows/early-access.yaml
vendored
29
.github/workflows/early-access.yaml
vendored
@@ -20,9 +20,6 @@ name: Early Access
|
||||
# trigger on push to branches and PR
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- mvnd-1.x
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
@@ -187,3 +184,29 @@ jobs:
|
||||
with:
|
||||
name: mvnd-${{ env.OS }}-${{ env.ARCH }}
|
||||
path: dist/target/maven-mvnd-*.zip
|
||||
|
||||
site-build:
|
||||
name: 'Site build'
|
||||
if: startsWith(github.event.head_commit.message, '[release] Release ') != true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: 'Set up Maven'
|
||||
shell: bash
|
||||
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-rc-3"
|
||||
|
||||
- name: 'Run site build'
|
||||
run: ./mvnw compile site -Dmrm=false -V -B -ntp -e -s .mvn/release-settings.xml
|
||||
|
||||
- name: 'Upload artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mvnd-site
|
||||
path: target/site
|
||||
|
2
pom.xml
2
pom.xml
@@ -95,6 +95,8 @@
|
||||
<version.plexus-xml>4.0.4</version.plexus-xml>
|
||||
<jakarta.inject.version>2.0.1</jakarta.inject.version>
|
||||
|
||||
<version.maven-fluido-skin>2.1.0</version.maven-fluido-skin>
|
||||
|
||||
<!-- plugin versions a..z -->
|
||||
<buildnumber-maven-plugin.version>3.2.1</buildnumber-maven-plugin.version>
|
||||
<groovy-maven-plugin.version>4.1.1</groovy-maven-plugin.version>
|
||||
|
Reference in New Issue
Block a user