Skip to content

Commit a42aa26

Browse files
Update for multiple files
1 parent 8d9ba27 commit a42aa26

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

.github/workflows/documentation.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
branches: [master, v92, change/v92/testForActions]
66

77
jobs:
8-
install:
8+
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pages: write # to deploy to Pages
13+
id-token: write # to verify the deployment originates from an appropriate source
14+
1015
steps:
1116
- name: Checkout code
1217
uses: actions/checkout@v2
@@ -15,25 +20,14 @@ jobs:
1520
working-directory: ./imxweb
1621
run: npm install
1722

18-
build:
19-
runs-on: ubuntu-latest
20-
needs: install
21-
strategy:
22-
matrix:
23-
project: [qbm, qer]
24-
steps:
25-
- name: Generate documentation for ${{matrix.project}}
26-
run: npm run doc:${{matrix.project}}
27-
working-directory: imxweb
23+
- name: Generate documentation for qbm
24+
run: npm run doc:qbm
25+
working-directory: ./imxweb
26+
27+
- name: Generate documentation for qer
28+
run: npm run doc:qer
29+
working-directory: ./imxweb
2830

29-
copy:
30-
runs-on: ubuntu-latest
31-
needs: build
32-
permissions:
33-
contents: write
34-
pages: write # to deploy to Pages
35-
id-token: write # to verify the deployment originates from an appropriate source
36-
steps:
3731
- name: Checkout doc
3832
uses: actions/checkout@v2
3933
with:
@@ -47,14 +41,13 @@ jobs:
4741
- name: Copy files to folder
4842
shell: bash
4943
run: |
50-
rm -r "documentation/v92"
5144
mkdir -p "documentation/v92"
52-
cp -rvT "imxweb/documentation/v92" "documentation/v92"
45+
cp -rvT "imxweb/documentation/v92" documentation/v92"
5346
5447
- name: Commit files to doc repository
5548
id: newFiles
5649
shell: bash
57-
working-directory: documemtation # todo: Struktur festlegen (auch oben)
50+
working-directory: doc-files
5851
run: |
5952
git config --global user.name "Automatic compoDoc documentation"
6053
git config --global user.email "[email protected]"

0 commit comments

Comments
 (0)