-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (35 loc) · 972 Bytes
/
develop.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
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