-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.64 KB
/
arche.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
name: ARCHE-Ingest
on:
workflow_dispatch
jobs:
build_pages:
name: Ingest Data into ARCHE
runs-on: ubuntu-latest
env:
ANT_OPTS: -Xmx5g
steps:
- name: Perform Checkout
uses: actions/checkout@v2
- name: Install Saxon, Ant and Fundament
run: |
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend
./script.sh
- name: Build
run: |
ant -f build_arche.xml
- name: ingestion dependencies
run: |
composer require "acdh-oeaw/arche-ingest:^1"
- name: ingest resources
run: |
vendor/bin/arche-import-metadata html/arche.rdf https://arche-dev.acdh-dev.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}}--retriesOnConflict 25
- name: Copy XML Files to to_ingest
run: |
mkdir $PWD/to_ingest
find -path "./data/editions/*.xml" -exec cp -prv '{}' './to_ingest' ';'
find -path "./data/indices/*.xml" -exec cp -prv '{}' './to_ingest' ';'
find -path "./data/meta/*.xml" -exec cp -prv '{}' './to_ingest' ';'
- name: install repo-file-checker
run: |
composer require "acdh-oeaw/repo-file-checker:^2"
mkdir -p filechecker/tmp filechecker/reports
- name: run repo-file-checker
run: |
php -f vendor/acdh-oeaw/repo-file-checker/index.php -- --tmpDir filechecker/tmp --reportDir filechecker/reports to_ingest 0
- name: ingest binaries
run: |
vendor/bin/arche-import-binary to_ingest https://id.acdh.oeaw.ac.at/frd-static https://arche-dev.acdh-dev.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}} --skip not_exist