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 8a645dd commit 9afe392
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 8 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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 @@ -113,7 +113,27 @@ jobs:
run: |
cd ${{ github.event.repository.name }}.wiki
rm -rf docbkx
mv ../openam-documentation/openam-doc-source/target/docbkx ../${{ github.event.repository.name }}.wiki
cp -R ../openam-documentation/openam-doc-source/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=openam-documentation/openam-doc-source
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
21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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,12 +92,29 @@ jobs:
run: |
cd ${{ github.event.repository.name }}.wiki
rm -rf docbkx
mv ../openam-documentation/openam-doc-source/target/docbkx ../${{ github.event.repository.name }}.wiki
cp -R ../openam-documentation/openam-doc-source/target/docbkx ../${{ github.event.repository.name }}.wiki
git add -A
git commit -a -m "upload docs after release ${{ github.event.inputs.releaseVersion }}"
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 openam-documentation/openam-doc-source/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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 @@ -104,6 +103,7 @@
<format>pdf</format>
<format>webhelp</format>
<format>xhtml5</format>
<format>bootstrap</format>
</formats>
</configuration>
</plugin>
Expand Down
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
<!-- Supress checkstyle errors on legacy com.iplanet and com.sun.identity packages -->
<checkstyleUnitTestSuppressionsLocation>checkstyle/suppressions.xml</checkstyleUnitTestSuppressionsLocation>
<opendj.version>4.6.5</opendj.version>
<commons-plugin.version>2.1.4</commons-plugin.version>
<javadoc-utils.version>1.0.0</javadoc-utils.version>
<ant.contrib.version>1.0b3</ant.contrib.version>
<guice.version>3.0</guice.version>
Expand Down Expand Up @@ -1863,7 +1862,6 @@
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>maven-external-dependency-plugin</artifactId>
<inherited>false</inherited>
<version>${commons-plugin.version}</version>
<configuration>
<stagingDirectory>
${project.build.directory}/dependencies/
Expand Down

0 comments on commit 9afe392

Please sign in to comment.