Skip to content

Commit

Permalink
Create repo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnmmeyer committed Jan 9, 2024
0 parents commit c8ac400
Show file tree
Hide file tree
Showing 11 changed files with 1,292 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/editorial.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant

name: Editorial updates

on:
push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Build with Ant
run: ant -noinput -buildfile build.xml

# create a package with the resulting XML files.
- name: Archive XML
uses: actions/upload-artifact@v2
with:
name: DHARMA_XMLCollection
path: texts/editedxml

# create a package with the resulting html files.
- name: Archive HTML
uses: actions/upload-artifact@v2
with:
name: DHARMA_HTMLCollection
path: texts/htmloutput

- name: Updating the edited texts in the repository
run: |
git config user.name github-actions
git config user.email [email protected]
git add texts/
git add metadata/
git commit -m "XML files are edited according to editorial conventions"
git push
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Apple binary files
.DS_Store

# Oxygen project/back-up
*.xpr
*.bak
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
os: linux
dist: xenial
language: java
env:
- XML_DIRECTORY="texts/xml"

addons:
apt:
packages:
- moreutils
- parallel

before_script:
- git clone git://github.com/erc-dharma/project-documentation.git

script:
- find $XML_DIRECTORY -name "*.xml" | parallel --gnu --will-cite -X -j8 -u "java -jar ./project-documentation/schema/validationTools/jing.jar http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng {}"
- find $XML_DIRECTORY -name "*.xml" | parallel --gnu --will-cite -X -j8 -u "java -jar ./project-documentation/schema/validationTools/jing.jar https://raw.githubusercontent.com/erc-dharma/project-documentation/master/schema/latest/DHARMA_Schema.rng {}"
Loading

0 comments on commit c8ac400

Please sign in to comment.