Skip to content

Commit

Permalink
Add Maven mojo documentation site (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Jul 6, 2023
1 parent 506ad2d commit 2171757
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy site to GitHub Pages

on:
push:
branches:
- master
workflow_dispatch:

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build site
run: mvn -B -V -e -ntp -Pquick-build clean verify site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./target/site

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,19 @@
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven-plugin-tools.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-report-plugin</artifactId>
<version>${maven-plugin-tools.version}</version>
</plugin>
</plugins>
</reporting>
</project>
8 changes: 8 additions & 0 deletions src/site/apt/index.apt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
------
License Maven Plugin
------
------

License Maven Plugin

This Maven 3 plugin provides various goals for processing license information.
29 changes: 29 additions & 0 deletions src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="License Maven Plugin">
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.11.2</version>
</skin>

<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html">
<item name="license:process" href="process-mojo.html"/>
</item>
</menu>
<menu ref="reports" inherit="bottom"/>
</body>

<custom>
<fluidoSkin>
<sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
<gitHub>
<projectId>jenkinsci/license-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>orange</ribbonColor>
</gitHub>
</fluidoSkin>
</custom>
</project>

0 comments on commit 2171757

Please sign in to comment.