-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.15 KB
/
docu.yml
File metadata and controls
38 lines (37 loc) · 1.15 KB
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
name: Documentation
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
timeout-minutes: 60
steps:
- name: Checkout main repo
uses: actions/checkout@v2
with:
repository: TcOpenGroup/TcOpen
path: docu/TcOpen
###
- name: Checkout docu repo
uses: actions/checkout@v2
with:
repository: TcOpenGroup/TcOpen.Documentation
path: docu/TcOpen.Documentation
token: ${{ secrets.TC_OPEN_GROUP_USER_PAT }}
###
- name : Build TcOpen
run: |
cd docu/TcOpen
git fetch --unshallow
.\pipelines\runbuild.ps1 -properties @{"buildConfig" = "Release"; "updateAssemblyInfo" = $true}
cd ..\..
###
- name : Build TcOpen.Documentation
env:
TC_OPEN_GROUP_USER_PAT: ${{ secrets.TC_OPEN_GROUP_USER_PAT }}
run: |
cd docu/TcOpen.Documentation
dotnet build
git add -A
git commit -m "Automated update of documentation"
git push "https://token:$env:[email protected]/TcOpenGroup/TcOpen.Documentation.git"