Skip to content

Commit 4e2aa3b

Browse files
committed
Improve pages representation
* Use newer maven site plugin * Simplify release workflow * Use mvnw * Correct link
1 parent c1adfaf commit 4e2aa3b

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ jobs:
138138
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
139139

140140
publish-pages:
141-
name: Publish dependencies and licenses to github pages
142141
runs-on: ubuntu-latest
143142
needs: [prepare_release]
144143
steps:
@@ -157,40 +156,15 @@ jobs:
157156
distribution: 'temurin'
158157
cache: 'maven'
159158

160-
- name: Build dependencies/licenses files
161-
run: mvn -B project-info-reports:dependencies
159+
- name: Build site
160+
run: ../mvnw -B site
162161
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
163162

164-
- name: Upload licenses - Upload Artifact
165-
uses: actions/upload-artifact@v4
166-
with:
167-
name: dependencies-licenses
168-
path: ${{ env.PRIMARY_MAVEN_MODULE }}/target/site
169-
170-
- name: Generate docs/dependencies dir
171-
run: mkdir -p docs/dependencies
172-
173-
- name: Move built files into docs/dependencies
174-
run: mv ${{ env.PRIMARY_MAVEN_MODULE }}/target/site/* docs/dependencies
175-
176-
- name: Rename dependencies.html to index.html
177-
working-directory: docs/dependencies
178-
run: mv dependencies.html index.html
179-
180-
- name: Copy Readme into docs (as index.md)
181-
run: cp README.md docs/index.md
182-
183-
- name: Configure Pages
184-
working-directory: docs
185-
run: |-
186-
echo "theme: jekyll-theme-tactile" > _config.yml
187-
188163
- name: Deploy to Github pages
189164
uses: peaceiris/actions-gh-pages@v3
190165
with:
191166
github_token: ${{ secrets.GITHUB_TOKEN }}
192-
publish_dir: ./docs
193-
enable_jekyll: true
167+
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
194168

195169
after_release:
196170
runs-on: ubuntu-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ If you need support as soon as possible and you can't wait for any pull request,
1616
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
1717

1818
## Dependencies and Licenses
19-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/standard-maven-template/dependencies/)
19+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/standard-maven-template/dependencies)

standard-maven-template/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@
8585
</distributionManagement>
8686

8787
<build>
88+
<pluginManagement>
89+
<plugins>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-site-plugin</artifactId>
93+
<version>4.0.0-M13</version>
94+
</plugin>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-project-info-reports-plugin</artifactId>
98+
<version>3.5.0</version>
99+
</plugin>
100+
</plugins>
101+
</pluginManagement>
88102
<plugins>
89103
<plugin>
90104
<groupId>com.mycila</groupId>

0 commit comments

Comments
 (0)