Publish ontologies #153
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 development ontologies | |
run-name: Publish ontologies | |
on: | |
push: | |
branches: | |
- develop | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: get and commit files | |
run: | | |
git checkout main | |
git checkout develop -- ./ontology | |
pip install -r requirements.txt | |
python build-dev.py | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -f docs/ | |
git commit -m "publish dev ontologies" -a | |
- name: push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |