Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Maven site #51

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,14 @@
<scope>test</scope>
</dependency>
</dependencies>

<reporting>
<plugins>
<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 @@
------
Maven Stapler Plugin
------
------

Maven Stapler Plugin

Maven plugin to generate taglib documentation and a variety of other tasks.
31 changes: 31 additions & 0 deletions src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Maven Stapler plugin">
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.10.0</version>
</skin>

<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html">
<item name="stapler:jelly-taglibdoc" href="jelly-taglibdoc-mojo.html"/>
<item name="stapler:l10n" href="l10n-mojo.html"/>
<item name="stapler:l10n-progress" href="l10n-progress-mojo.html"/>
</item>
</menu>
<menu ref="reports" inherit="bottom"/>
</body>

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