-
Notifications
You must be signed in to change notification settings - Fork 0
204 lines (156 loc) · 6.37 KB
/
gtcorpus.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
name: gtrepo
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
cli:
name: makeDescription
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v3
# Create Directories
- name: create directories
run: |
mkdir frak
mkdir ant
mkdir fontmix
mkdir frak/frak_simple
mkdir frak/frak_complex
mkdir ant/ant_simple
mkdir ant/ant_complex
mkdir fontmix/fontmix_simple
mkdir fontmix/fontmix_complex
# Clone Repos
- name: clone repos and delete files
run: |
cd frak
cd frak_simple
git clone https://github.com/tboenig/16_frak_simple.git --branch gh-pages
cd 16_frak_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/17_frak_simple.git --branch gh-pages
cd 17_frak_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/18_frak_simple.git --branch gh-pages
cd 18_frak_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/19_frak_simple.git --branch gh-pages
cd 19_frak_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../..
cd frak_complex
git clone https://github.com/tboenig/16_frak_complex.git --branch gh-pages
cd 16_frak_complex
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/17_frak_complex.git --branch gh-pages
cd 17_frak_complex
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/18_frak_complex.git --branch gh-pages
cd 18_frak_complex
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../../..
cd ant
cd ant_simple
git clone https://github.com/tboenig/16_ant_simple.git --branch gh-pages
cd 16_ant_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/18_ant_simple.git --branch gh-pages
cd 18_ant_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../..
cd ant_complex
git clone https://github.com/tboenig/16_ant_complex.git --branch gh-pages
cd 16_ant_complex
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ..
git clone https://github.com/tboenig/19_ant_simple.git --branch gh-pages
cd 19_ant_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../../..
cd fontmix
cd fontmix_simple
git clone https://github.com/tboenig/17_fontmix_simple.git --branch gh-pages
cd 17_fontmix_simple
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../..
cd fontmix_complex
git clone https://github.com/tboenig/18_fontmix_complex.git --branch gh-pages
cd 18_fontmix_complex
rm -rf _config.yml index.md metadata.md overview.md table.md table_hide.css
cd ../../..
ls -l
# Installation Styles
- name: install analyse xsl-styles
run: |
git clone https://github.com/tboenig/gt-repo-scripts.git
mv gt-repo-scripts/scripts scripts/
rm -r gt-repo-scripts
# Installation GT-Labelling Documentation
- name: install labeling
run: |
git clone https://github.com/tboenig/gt-guidelines.git
# Installation Transformer
- name: Download and install saxon
run: |
wget https://sourceforge.net/projects/saxon/files/Saxon-HE/11/Java/SaxonHE11-4J.zip/download
unzip download
# Transform Readme
- name: readme.xml file
run: sh scripts/xreadme.sh
# Transformation and analyzing
- name: generate README
run: |
java -jar saxon-he-11.4.jar -xsl:scripts/gt-coll_metadata.xsl \
-s:scripts/gt-coll_metadata.xsl -o:README.md
shell: bash
#- name: Index-link
# run: |
# cd ghout
# ln -s metadata.md index.md
#- name: archive the ocrdzip files from ocrdzip_out folder
# uses: thedoctor0/zip-release@master
# with:
# filename: bagitDump-v${{ github.run_number }}.zip
# path: 'ocrdzip_out'
#- name: Upload Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: './bagitDump-v*.zip'
# artifactContentType: application/zip
# name: Release ${{ github.run_number }}_${{ github.ref_name }}
# body: |
# <dl>
# <dt>Version:</dt>
# <dd>${{ github.ref_name }}</dd>
# <dt>Info:</dt>
# <dd>To use the Ground Truth download the bagitDump-v${{ github.run_number }}.zip file.<br/>
# The zip file contains all ocr-d-bagit files.<br/>
# The Metadata.json file contains metadata for the Ground Truth corpus.<br/>
# The Mets.xml file lists all containing documents/bagits.<br/>
# The bagits correspond to the <a href="https://ocr-d.de/de/spec/ocrd_zip.html">OCR-D Bagit Spec</a>.</dd>
# </dl>
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit README
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
git commit -m "[Automatic] Update readme files" || echo "Nothing to update"
git push origin HEAD:main
#- name: Deploy GT-Overview to GitHub Pages 🚀
# uses: JamesIves/github-pages-deploy-action@v4.4.1
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: ghout # The folder the action should deploy.