Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish asciidoc pdf to wiki on deploy and release #90

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ${{ github.event.repository.name }}.wiki
rm -rf docbkx
cp -R ../openig-doc/target/docbkx ../${{ github.event.repository.name }}.wiki
rm -rf asciidoc
mkdir asciidoc
cp -R ../openig-doc/target/asciidoc/pdf ../${{ github.event.repository.name }}.wiki/asciidoc
git add -A
git commit -a -m "upload docs after deploy ${{ github.sha }}"
git push --quiet --force
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ${{ github.event.repository.name }}.wiki
rm -rf docbkx
mv ../openig-doc/target/docbkx ../${{ github.event.repository.name }}.wiki
rm -rf asciidoc
mkdir asciidoc
cp -R ../openig-doc/target/asciidoc/pdf ../${{ github.event.repository.name }}.wiki/asciidoc
git add -A
git commit -a -m "upload docs after release ${{ github.event.inputs.releaseVersion }}"
git tag -f ${{ github.event.inputs.releaseVersion }}
Expand Down
55 changes: 0 additions & 55 deletions openig-doc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,6 @@
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>doc-maven-plugin</artifactId>
<executions>
<execution>
<id>build-man-pages</id>
<phase>package</phase>
<goals>
<goal>process</goal>
<goal>build</goal>
<goal>release</goal>
</goals>
</execution>
<execution>
<id>build-man-pages-asciidoc</id>
<phase>package</phase>
Expand All @@ -338,54 +329,8 @@
<projectName>OpenIG</projectName>
<projectVersion>${project.version}</projectVersion>
<releaseVersion>${project.version}</releaseVersion>
<buildReleaseZip>true</buildReleaseZip>
<googleAnalyticsId />
<isDraftMode>no</isDraftMode>
<formats combine.self="override">
<format>man</format>
<format>epub</format>
<format>html</format>
<format>pdf</format>
<format>webhelp</format>
<format>xhtml5</format>
<format>bootstrap</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>zip-docs</id>
<phase>package</phase>
<configuration>
<target>
<property name="compress_formats" value="webhelp,xhtml,html" />
<ant antfile="${basedir}/src/main/ant/zip.xml">
<target name="docs" />
</ant>&gt;
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>${ant.contrib.version}</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
Expand Down