Skip to content

Commit

Permalink
Update for multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
Martina-Graeber-One-Identity committed Nov 27, 2023
1 parent 5c0a7dc commit 4c384fb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
54 changes: 24 additions & 30 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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
5 changes: 3 additions & 2 deletions imxweb/projects/qbm/.compodocrc.json
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
}
9 changes: 5 additions & 4 deletions imxweb/projects/qer/.compodocrc.json
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
}

0 comments on commit 4c384fb

Please sign in to comment.