Skip to content

Commit 6550fe4

Browse files
authored
Merge pull request #358 from LiUSemWeb/develop
update workflow
2 parents 6ace58e + d2f347d commit 6550fe4

78 files changed

Lines changed: 59420 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy Development Documentation by MkDocs
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
paths:
8+
- 'dev-documentation/**'
9+
- 'mkdocs.yml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.x'
25+
26+
- name: Install dependencies
27+
run: pip install -r requirements-docs.txt
28+
29+
- name: Build MkDocs site
30+
run: mkdocs build
31+
32+
- name: Commit and push docs/dev
33+
run: |
34+
git config --local user.email "action@github.com"
35+
git config --local user.name "GitHub Action"
36+
git add -f docs/dev/
37+
git commit -m "Deploy MkDocs documentation"
38+
git push
39+
40+
- name: push changes
41+
uses: ad-m/github-push-action@master
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
branch: main

.github/workflows/develop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- develop
7+
paths:
8+
- 'ontology/**'
79
permissions:
810
contents: write
911
jobs:

0 commit comments

Comments
 (0)