Update README.md #24
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
name: Publish TEI Council Documentation | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout gh-pages | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
path: main | |
- name: Install libxml2-utils | |
run: sudo apt-get update && sudo apt-get install libxml2-utils xsltproc | |
- name: Transform XML | |
run: bash main/bin/publish.sh | |
- name: Cleanup | |
run: rm -r main | |
- name: Commit and push if changed | |
run: |- | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Latest data: ${timestamp}" || exit 0 | |
git push |