Skip to content

Commit

Permalink
add site publish to release action (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkoehler authored Mar 18, 2024
1 parent 792c8db commit d49ec80
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/') }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
<url>https://github.com/NationalSecurityAgency/emissary/issues</url>
</issueManagement>
<ciManagement />
<distributionManagement />
<distributionManagement>
<site>
<id>github</id>
<url>scm:git:[email protected]:NationalSecurityAgency/emissary.git</url>
</site>
</distributionManagement>
<properties>
<BUILD_TIMESTAMP>${maven.build.timestamp}</BUILD_TIMESTAMP>
<EMISSARY_VERSION>${project.version}</EMISSARY_VERSION>
Expand Down Expand Up @@ -870,6 +875,14 @@
</delimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<scmBranch>gh-pages</scmBranch>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
Expand Down

0 comments on commit d49ec80

Please sign in to comment.