Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maximthomas authored Jul 30, 2024
1 parent a260994 commit 52bf4b3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
with:
repository: ${{ github.repository }}.wiki
path: ${{ github.event.repository.name }}.wiki
- name: Publish docs in wiki
- name: Publish docs to wiki
continue-on-error: true
shell: bash
env:
Expand All @@ -83,7 +83,27 @@ jobs:
run: |
cd ${{ github.event.repository.name }}.wiki
rm -rf docbkx
mv ../openig-doc/target/docbkx ../${{ github.event.repository.name }}.wiki
cp -R ../openig-doc/target/docbkx ../${{ github.event.repository.name }}.wiki
git add -A
git commit -a -m "upload docs after deploy ${{ github.sha }}"
git push --quiet --force
git push --quiet --force
- uses: actions/checkout@v4
continue-on-error: true
with:
repository: OpenIdentityPlatform/doc.openidentityplatform.org
path: doc.openidentityplatform.org
token: ${{ secrets.OIP_PAT_GH_TOKEN }}

- name: Publish docs to site
continue-on-error: true
shell: bash
run: |
export REPO_NAME_LC=$(echo '${{github.event.repository.name}}' | tr '[:upper:]' '[:lower:]')
export SITE_DOC_FOLDER=openig-doc
cd doc.openidentityplatform.org
rm -rf ${REPO_NAME_LC}
cp -R ../${SITE_DOC_FOLDER}/target/docbkx/bootstrap ../doc.openidentityplatform.org/${REPO_NAME_LC}
git add -A
git commit -a -m "upload ${{github.event.repository.name}} docs after deploy ${{ github.sha }}"
git push --force https://github.com/OpenIdentityPlatform/doc.openidentityplatform.org.git
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
repository: ${{ github.repository }}.wiki
path: ${{ github.event.repository.name }}.wiki
fetch-depth: 0
- name: Publish docs in wiki
- name: Publish docs to wiki
continue-on-error: true
shell: bash
env:
Expand All @@ -92,6 +92,21 @@ jobs:
git tag -f ${{ github.event.inputs.releaseVersion }}
git push --quiet --force
git push --quiet --force origin ${{ github.event.inputs.releaseVersion }}
- uses: actions/checkout@v4
continue-on-error: true
with:
repository: OpenIdentityPlatform/doc.openidentityplatform.org
path: doc.openidentityplatform.org
token: ${{ secrets.OIP_PAT_GH_TOKEN }}
- name: Publish docs to site
continue-on-error: true
shell: bash
run: |
export REPO_NAME_LC=$(echo '${{github.event.repository.name}}' | tr '[:upper:]' '[:lower:]')
export TAG_NAME='${{github.event.repository.name}}-${{ github.event.inputs.releaseVersion }}'
cd doc.openidentityplatform.org
git tag -f '${TAG_NAME}'
git push --quiet --force origin '${TAG_NAME}'
release-docker:
runs-on: 'ubuntu-latest'
needs:
Expand Down
2 changes: 1 addition & 1 deletion openig-doc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@
<plugin>
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>doc-maven-plugin</artifactId>
<version>${commons-plugin.version}</version>
<executions>
<execution>
<id>build-man-pages</id>
Expand All @@ -331,6 +330,7 @@
<format>pdf</format>
<format>webhelp</format>
<format>xhtml5</format>
<format>bootstrap</format>
</formats>
</configuration>
</plugin>
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
<forgerockBuildToolsVersion>1.0.3</forgerockBuildToolsVersion>
<checkstylePluginVersion>2.9.1</checkstylePluginVersion>
<checkstyleVersion>5.5</checkstyleVersion>
<commons-plugin.version>2.1.4</commons-plugin.version>
<ant.contrib.version>1.0b3</ant.contrib.version>
<java.surefire.options>-server</java.surefire.options>
</properties>
Expand Down

0 comments on commit 52bf4b3

Please sign in to comment.