From 4051d856eca1e56bd1862002d4b19f45b18dedc1 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 8 Jun 2023 10:10:12 -0700 Subject: [PATCH] Publish Maven site --- .github/workflows/site.yml | 51 ++++++++++++++++++++++++++++++++++++++ pom.xml | 10 ++++++++ src/site/apt/index.apt | 8 ++++++ src/site/site.xml | 31 +++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 .github/workflows/site.yml create mode 100644 src/site/apt/index.apt create mode 100644 src/site/site.xml diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml new file mode 100644 index 0000000..42ca2c4 --- /dev/null +++ b/.github/workflows/site.yml @@ -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 diff --git a/pom.xml b/pom.xml index 221cbf0..014208b 100644 --- a/pom.xml +++ b/pom.xml @@ -208,4 +208,14 @@ test + + + + + org.apache.maven.plugins + maven-plugin-report-plugin + ${maven-plugin-tools.version} + + + diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt new file mode 100644 index 0000000..5df54d7 --- /dev/null +++ b/src/site/apt/index.apt @@ -0,0 +1,8 @@ + ------ + Maven Stapler Plugin + ------ + ------ + +Maven Stapler Plugin + + Maven plugin to generate taglib documentation and a variety of other tasks. diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..2e7bdb5 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,31 @@ + + + + org.apache.maven.skins + maven-fluido-skin + 1.10.0 + + + + + + + + + + + + + + + + + true + + jenkinsci/maven-stapler-plugin + right + orange + + + +