-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.25 KB
/
editorial.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
# 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 github-actions@github.com
git add texts/
git add metadata/
git commit -m "XML files are edited regarding editorial conventions"
git push