-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c0a7dc
commit 4c384fb
Showing
3 changed files
with
32 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,8 @@ on: | |
branches: [master, v92, change/v92/testForActions] | ||
|
||
jobs: | ||
build: | ||
install: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -20,14 +15,29 @@ jobs: | |
working-directory: ./imxweb | ||
run: npm install | ||
|
||
- name: Generate documentation for qbm | ||
run: npm run doc:qbm | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: install | ||
strategy: | ||
matrix: | ||
project: [qbm, qer] | ||
steps: | ||
- name: Generate documentation for ${{matrix.project}} | ||
run: npm run doc:${{matrix.project}} | ||
working-directory: ./imxweb | ||
|
||
copy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
permissions: | ||
contents: write | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
steps: | ||
- name: Checkout doc | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'doc-files' | ||
path: 'documentation' | ||
ref: 'main' | ||
repository: 'OneIdentity/IdentityManager.ImxDoc' | ||
token: ${{ secrets.GHPAGES_ACCESS_TOKEN}} | ||
|
@@ -37,33 +47,17 @@ jobs: | |
- name: Copy files to folder | ||
shell: bash | ||
run: | | ||
mkdir -p "doc-files/doc" | ||
cp -rvT "imxweb/doc/v92" "doc-files/doc" | ||
rm -r "documentation/v92" | ||
mkdir -p "documentation/v92" | ||
cp -rvT "imxweb/documentation/v92" "documentation/v92" | ||
- name: Commit files to doc repository | ||
id: newFiles | ||
shell: bash | ||
working-directory: doc-files | ||
working-directory: documemtation # todo: Struktur festlegen (auch oben) | ||
run: | | ||
git config --global user.name "Automatic compoDoc documentation" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Automatic compoDoc documentation" | ||
git push | ||
# env: | ||
# CI_COMMIT_MESSAGE: Automatic compoDoc documentation | ||
# CI_COMMIT_AUTHOR: Compodoc Integration Process | ||
# steps: | ||
|
||
# #ToDO: I need to change the repo here | ||
|
||
# - name: GIT Commit Documentation | ||
# # Only run on main branch push (e.g. pull request merge). | ||
# if: github.event_name == 'push' | ||
# run: | | ||
# git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
# git config --global user.email "[email protected]" | ||
# git add imxweb/doc | ||
# git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | ||
# git push | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"name": "IMX Web - QBM Library", | ||
"output": "../../doc/v92/qbm", | ||
"output": "../../documentation/v92/qbm", | ||
"assetsFolder": "../../compodoc/assets", | ||
"theme": "material", | ||
"customLogo": "../../compodoc/assets/images/oneidentity-logo.png", | ||
"customFavicon": "../../compodoc/assets/images/favicon.ico", | ||
"serve": false, | ||
"watch": false, | ||
"coverageTest": 0 | ||
"coverageTest": 0, | ||
"disableCoverage": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"name": "IMX Web - QER Library", | ||
"output": "../../documentation/qer", | ||
"output": "../../documentation/v92/qer", | ||
"theme": "material", | ||
"assetsFolder": "../../compodoc/assets", | ||
"customLogo": "../../compodoc/assets/images/oneidentity-logo.png", | ||
"customFavicon": "../../compodoc/assets/images/favicon.ico", | ||
"serve": true, | ||
"watch": true, | ||
"coverageTest": 0 | ||
"serve": false, | ||
"watch": false, | ||
"coverageTest": 0, | ||
"disableCoverage": true | ||
} |