-
Notifications
You must be signed in to change notification settings - Fork 140
70 lines (60 loc) · 1.92 KB
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Documentation
on:
push:
branches: [master, v92, change/v92/testForActions]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
working-directory: ./imxweb
run: npm install
- name: Generate documentation for qbm
run: npm run doc:qbm
working-directory: ./imxweb
deploy:
# Specify runner + deployment step
runs-on: ubuntu-latest
# Add a dependency to the build job
needs: build
steps:
- name: Checkout doc
uses: actions/checkout@v3
with:
path: 'doc-files'
ref: 'main'
repository: ' IdentityManager.ImxDoc'
token: ${{ secrets.BOT_TOKEN }}
fetch-depth: 0
persist-credentials: true
- name: Copy files to folder
shell: bash
run: |
mkdir -p doc
cp -rvT imxweb/doc/v92 doc"
- name: check for new files
id: newFiles
shell: bash
working-directory: doc-files
run: |
git config --global user.name "Automatic compoDoc documentation"
git config --global user.email "[email protected]"
git add imxweb/doc
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