mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-08 02:17:43 +00:00
added configuration to deploy documentation to GitHub pages when a release is happening
adapted documentation configuration
This commit is contained in:
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Publish package to GitHub Packages
|
name: Publish package to GitHub Packages and deploy documentation to GitHub pages
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
@@ -7,11 +7,28 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up Java for publishing to GitHub Packages
|
- name: Set up Java for publishing to GitHub Packages
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- name: Load current version
|
||||||
|
id: version
|
||||||
|
run: echo "::set-output name=version::$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)"
|
||||||
- name: Publish to GitHub Packages
|
- name: Publish to GitHub Packages
|
||||||
run: mvn -f abstracto-application/pom.xml -B deploy
|
run: mvn -B deploy -P documentation -Dmaven.wagon.http.pool=false -DskipTests=true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Install SSH Client
|
||||||
|
uses: webfactory/ssh-agent@v0.3.0
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
- name: Deploy documentation to GitHub pages
|
||||||
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
with:
|
||||||
|
REPOSITORY_NAME: Sheldan/abstracto-docs
|
||||||
|
TARGET_FOLDER: docs/${{ steps.version.outputs.version }}
|
||||||
|
BRANCH: master
|
||||||
|
SSH: true
|
||||||
|
FOLDER: abstracto-application/documentation/target/generated-docs
|
||||||
@@ -44,6 +44,8 @@
|
|||||||
<sourceDirectory>src/main/docs/asciidoc</sourceDirectory>
|
<sourceDirectory>src/main/docs/asciidoc</sourceDirectory>
|
||||||
<sourceDocumentName>main.adoc</sourceDocumentName>
|
<sourceDocumentName>main.adoc</sourceDocumentName>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
<revnumber>${project.version}</revnumber>
|
||||||
|
<revdate>${maven.build.timestamp}</revdate>
|
||||||
</attributes>
|
</attributes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -56,6 +58,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<backend>pdf</backend>
|
<backend>pdf</backend>
|
||||||
<sourceHighlighter>coderay</sourceHighlighter>
|
<sourceHighlighter>coderay</sourceHighlighter>
|
||||||
|
<outputFile>documentation.pdf</outputFile>
|
||||||
<attributes>
|
<attributes>
|
||||||
<icons>font</icons>
|
<icons>font</icons>
|
||||||
<pagenums/>
|
<pagenums/>
|
||||||
@@ -72,6 +75,7 @@
|
|||||||
<goal>process-asciidoc</goal>
|
<goal>process-asciidoc</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<outputFile>index.html</outputFile>
|
||||||
<sourceDirectory>src/main/docs/asciidoc</sourceDirectory>
|
<sourceDirectory>src/main/docs/asciidoc</sourceDirectory>
|
||||||
<backend>html</backend>
|
<backend>html</backend>
|
||||||
<doctype>book</doctype>
|
<doctype>book</doctype>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
= Abstracto Discord Bot Documentation
|
= Abstracto Discord Bot Documentation
|
||||||
Sheldan https://github.com/Sheldan
|
Sheldan https://github.com/Sheldan/abstracto
|
||||||
1.0, May 10, 2020
|
|
||||||
:toc:
|
:toc:
|
||||||
:toclevels: 5
|
:toclevels: 5
|
||||||
:sectnums:
|
:sectnums:
|
||||||
|
:title-page:
|
||||||
|
|
||||||
:sectnumlevels: 5
|
:sectnumlevels: 5
|
||||||
:icons: font
|
:icons: font
|
||||||
|
|
||||||
|
== Description
|
||||||
Abstracto is a feature rich Discord bot written in Java and uses JDA as the wrapper for the Discord API.
|
Abstracto is a feature rich Discord bot written in Java and uses JDA as the wrapper for the Discord API.
|
||||||
This documentation is split into two parts: Technical documentation and user documentation.
|
This documentation is split into two parts: Technical documentation and user documentation.
|
||||||
|
|
||||||
|
|||||||
@@ -27,13 +27,9 @@
|
|||||||
<module>coverage</module>
|
<module>coverage</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<distributionManagement>
|
<properties>
|
||||||
<repository>
|
<maven.build.timestamp.format>yyyy/MM/dd HH:mm</maven.build.timestamp.format>
|
||||||
<id>github</id>
|
</properties>
|
||||||
<name>GitHub Packages</name>
|
|
||||||
<url>https://maven.pkg.github.com/Sheldan/abstracto</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
|
|||||||
13
pom.xml
13
pom.xml
@@ -28,6 +28,19 @@
|
|||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>github</id>
|
||||||
|
<name>GitHub Packages</name>
|
||||||
|
<url>https://maven.pkg.github.com/Sheldan/abstracto</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<url>https://maven.pkg.github.com/Sheldan/abstracto</url>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>abstracto-application</module>
|
<module>abstracto-application</module>
|
||||||
<module>database</module>
|
<module>database</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user