From caed38ed0d5324eea40f2348ef25d5cb689d936f Mon Sep 17 00:00:00 2001 From: Connor Koehler Date: Wed, 14 Feb 2024 20:49:07 -0500 Subject: [PATCH] Add site publish to release action Signed-off-by: Connor Koehler --- .github/workflows/maven-release.yml | 6 ++++++ README.md | 2 ++ pom.xml | 15 ++++++++++++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 1383415c61..4e90e538ab 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -131,6 +131,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish site to GitHub Pages + run: mvn site site:stage scm-publish:publish-scm -DskipTests + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Delete branch continue-on-error: true if: ${{ github.event.inputs.release_type == 'patch' && startsWith(github.ref_name, 'patch/') }} diff --git a/README.md b/README.md index 2938b0d69e..d2e5f69e5e 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ the path of a set of related payload objects through the workflow and the [emissary.directory.DirectoryPlace](src/main/java/emissary/directory/DirectoryPlace.java) which manages the available services, their cost and quality and keep the P2P network connected. +### Maven Site and Javadoc hosted on GitHub Pages: https://code.nsa.gov/emissary/ + ## Minimum Requirements - Linux or MacOSX operating system diff --git a/pom.xml b/pom.xml index 4b35258c66..fce37036bb 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,12 @@ https://github.com/NationalSecurityAgency/emissary/issues - + + + github + scm:git:git@github.com:NationalSecurityAgency/emissary.git + + ${maven.build.timestamp} ${project.version} @@ -870,6 +875,14 @@ + + org.apache.maven.plugins + maven-scm-publish-plugin + 3.2.1 + + gh-pages + + org.apache.maven.plugins maven-site-plugin