-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0c2be8b
Showing
11 changed files
with
1,292 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {}" |
Oops, something went wrong.