Skip to content

Commit cb2c732

Browse files
authoredApr 8, 2025··
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
1 parent a017cd5 commit cb2c732

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed
 

‎.github/workflows/early-access.yaml

+26-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ name: Early Access
2020
# trigger on push to branches and PR
2121
on:
2222
push:
23-
branches:
24-
- master
25-
- mvnd-1.x
2623
pull_request:
2724

2825
env:
@@ -187,3 +184,29 @@ jobs:
187184
with:
188185
name: mvnd-${{ env.OS }}-${{ env.ARCH }}
189186
path: dist/target/maven-mvnd-*.zip
187+
188+
site-build:
189+
name: 'Site build'
190+
if: startsWith(github.event.head_commit.message, '[release] Release ') != true
191+
runs-on: ubuntu-latest
192+
steps:
193+
- name: 'Checkout'
194+
uses: actions/checkout@v4
195+
196+
- uses: actions/setup-java@v4
197+
with:
198+
java-version: ${{ env.JAVA_VERSION }}
199+
distribution: 'temurin'
200+
201+
- name: 'Set up Maven'
202+
shell: bash
203+
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-rc-3"
204+
205+
- name: 'Run site build'
206+
run: ./mvnw compile site -Dmrm=false -V -B -ntp -e -s .mvn/release-settings.xml
207+
208+
- name: 'Upload artifact'
209+
uses: actions/upload-artifact@v4
210+
with:
211+
name: mvnd-site
212+
path: target/site

‎pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
<version.plexus-xml>4.0.4</version.plexus-xml>
9696
<jakarta.inject.version>2.0.1</jakarta.inject.version>
9797

98+
<version.maven-fluido-skin>2.1.0</version.maven-fluido-skin>
99+
98100
<!-- plugin versions a..z -->
99101
<buildnumber-maven-plugin.version>3.2.1</buildnumber-maven-plugin.version>
100102
<groovy-maven-plugin.version>4.1.1</groovy-maven-plugin.version>

0 commit comments

Comments
 (0)
Please sign in to comment.