diff --git a/.github/workflows/publish-site-ghpages.yml b/.github/workflows/publish-site-ghpages.yml
new file mode 100644
index 0000000..4d31494
--- /dev/null
+++ b/.github/workflows/publish-site-ghpages.yml
@@ -0,0 +1,27 @@
+name: Publish documentation
+
+on:
+ workflow_dispatch
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ server-id: github
+ settings-path: ${{ github.workspace }}
+ - name: Publish to GitHub Pages
+ shell: bash
+ run: |
+ git config --global user.name "github-actions[bot]"
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ ./mvnw --batch-mode --no-transfer-progress install --file pom.xml
+ cd changesets-maven-plugin
+ ../mvnw --batch-mode --no-transfer-progress clean site scm-publish:publish-scm -s $GITHUB_WORKSPACE/settings.xml
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/changesets-maven-plugin/pom.xml b/changesets-maven-plugin/pom.xml
index 115a68a..a822cd3 100644
--- a/changesets-maven-plugin/pom.xml
+++ b/changesets-maven-plugin/pom.xml
@@ -12,6 +12,13 @@
changesets-maven-plugin
maven-plugin
+
+
+ github
+ scm:git:https://github.com/FortnoxAB/changesets-java.git
+
+
+
${project.groupId}
@@ -87,6 +94,32 @@
+
+ org.apache.maven.plugins
+ maven-site-plugin
+ 3.21.0
+
+
+ default-site
+
+ site
+ stage
+
+ site
+
+
+
+ false
+
+
+
+ org.apache.maven.plugins
+ maven-scm-publish-plugin
+ 3.3.0
+
+ gh-pages
+
+
@@ -128,4 +161,20 @@
+
+
+
+
+ org.apache.maven.plugins
+ maven-plugin-report-plugin
+
+
+
+ report
+
+
+
+
+
+
\ No newline at end of file
diff --git a/changesets-maven-plugin/src/site/site.xml b/changesets-maven-plugin/src/site/site.xml
new file mode 100644
index 0000000..4f82c52
--- /dev/null
+++ b/changesets-maven-plugin/src/site/site.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ org.apache.maven.skins
+ maven-fluido-skin
+ 2.0.0-M9
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 33581c0..db01296 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,6 +62,7 @@
3.9.9
5.11.3
1.0.0
+ 3.15.1
@@ -184,6 +185,9 @@
maven-site-plugin
3.21.0
+
+ true
+
maven-project-info-reports-plugin
@@ -200,7 +204,7 @@
maven-plugin-plugin
- 3.15.1
+ ${maven-plugin-plugin.version}
maven-surefire-plugin
@@ -234,6 +238,11 @@
+
+ org.apache.maven.plugins
+ maven-plugin-report-plugin
+ ${maven-plugin-plugin.version}
+