Skip to content

Publish Maven Site

Publish Maven Site #26

Workflow file for this run

name: Publish Maven Site
on:
workflow_dispatch:
inputs:
ref:
description: "The branch, tag or SHA to publish."
required: true
default: "master"
jobs:
build:
name: Publish maven site
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Configure Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Publish Site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw -ntp -pl plugin -am --batch-mode clean compile site site:stage scm-publish:publish-scm