-
Notifications
You must be signed in to change notification settings - Fork 165
136 lines (132 loc) · 3.73 KB
/
wikidocs.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Build Wiki Documentation
#
# set secret OWGHTOKEN - https 'user name:password'
name: WikiDocs
on:
push:
branches:
- master
paths:
- '.github/workflows/wikidocs.yml'
- '.github/actions/artfdelc/action.yml'
- '.github/actions/artfload/action.yml'
- '.github/actions/artfsave/action.yml'
- '.github/actions/boot/action.yml'
- '.github/actions/dosboxin/action.yml'
- '.github/actions/docbuild/action.yml'
- '.github/actions/curlcmd/action.yml'
- '.github/actions/tarload/action.yml'
- '.github/actions/tarsave/action.yml'
- 'docs/**'
- 'bld/cc/gml/**'
- 'bld/cg/doc/**'
- 'bld/dwarf/dw/doc/**'
- 'bld/f77/wfc/gml/**'
- 'bld/plusplus/gml/**'
- 'bld/wpi/doc/**'
- 'bld/wv/doc/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
start-start:
if: github.repository == 'open-watcom/open-watcom-v2'
name: Check if to run
runs-on: ubuntu-latest
steps:
- run: echo ""
shell: bash
wiki-boot:
needs: start-start
name: Bootstrap
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
- name: Bootstrap
uses: "./.github/actions/boot"
with:
hostos: 'nt'
buildcmd: 'ci/buildx.cmd vs2019'
suffix: 'nt x64 vs2019'
owtools: 'VISUALC'
noarchive: '1'
owdebug: ${{ vars.OWDEBUG }}
env:
OWDOCTARGET: 'bootdocs'
wiki-build:
needs: wiki-boot
name: Build
runs-on: windows-2019
strategy:
matrix:
include:
- title: 'HTML'
doctype: 'wikihtml'
owtarget: '.and wikihtml .or -- -- docset=wikihtml -i'
- title: 'PDF'
doctype: 'wikipdf'
owtarget: '.and wikipdf .or -- -- docset=wikipdf -i'
steps:
- name: checkout
uses: actions/checkout@v4
- name: Build ${{ matrix.title }}
uses: "./.github/actions/docbuild"
with:
hostos: 'nt'
buildcmd: 'ci/buildx.cmd vs2019'
target: ${{ matrix.doctype }}
relpath: 'docs wiki'
suffixi: 'nt x64 vs2019'
suffixo: "${{ matrix.doctype }} vs2019"
owtools: 'VISUALC'
owtarget: ${{ matrix.owtarget }}
owdebug: ${{ vars.OWDEBUG }}
noarchive: '1'
wiki-update:
name: Update Wiki
needs: wiki-build
runs-on: windows-2019
steps:
- name: Setup Git User
shell: cmd
run: |
git config --global user.email "[email protected]"
git config --global user.name "Open Watcom GitHub"
- name: Wiki Repo clone
shell: cmd
run: |
git clone -v --depth=1 --branch=master https://%OWGHTOKEN%@github.com/%OWWIKIPROJ%.git .
env:
OWGHTOKEN: ${{ secrets.OWGHTOKEN }}
OWWIKIPROJ: open-watcom/open-watcom-v2-wikidocs
- name: Download Artifact html
uses: actions/download-artifact@v4
with:
name: 'rel-wikihtml-vs2019'
path: docs
- name: Download Artifact pdf
uses: actions/download-artifact@v4
with:
name: 'rel-wikipdf-vs2019'
path: docs
- name: Wiki Repo Update
shell: cmd
run: |
git add -v -f .
git commit -v -m "GitHub Workflow build"
git push -v
cleanup:
needs: wiki-update
name: Call to delete Artifacts
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- if: vars.OWDELETEARTIFACTS == 1
name: Call to delete Artifacts
uses: "./.github/actions/artfdelc"
with:
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}