Skip to content

Commit

Permalink
build: new github action for publishing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarmbruster committed Apr 30, 2024
1 parent c17cba8 commit b6d19e8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
permissions: write-all

name: publish-docs
on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
# server-id: oss.sonatype.org
# server-username: MAVEN_USERNAME
# server-password: MAVEN_PASSWORD
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
# gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: generate maven site
run: mvn site site:stage

- name: publish to gh-pages
run: mvn scm-publish:publish-scm
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
<name>GitHub</name>
<url>https://maven.pkg.github.com/THM-graphs/neo4j-atag</url>
</repository>
<site>
<id>github</id>
<url>scm:git:git@github.com:THM-Graphs/neo4j-atag.git</url>
</site>
</distributionManagement>

<dependencies>
Expand Down Expand Up @@ -180,6 +184,14 @@
<tagNameFormat>v@{project.version}</tagNameFormat>
</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>com.ragedunicorn.tools.maven</groupId>
Expand Down

0 comments on commit b6d19e8

Please sign in to comment.