-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.4 KB
/
documentation.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
name: Run Tests
on:
push:
jobs:
run-tests:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Build Module-Packages
CI_COMMIT_AUTHOR: fruithost | Modules Builder
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get Sources
run: |
git clone https://github.com/fruithost/Panel.git ./src/
git clone https://github.com/fruithost/Documentation.wiki.git ./wiki/
- name: Generate HTML from Markdown
uses: ldeluigi/markdown-docs@latest
with:
src: ./src/
dst: ./wiki/
title: fruithost
language: en
icon: library
primary-color: indigo
secondary-color: indigo
hide-repository: false
- name: Commit changes
if: github.event_name == 'push'
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "fruithost@users.noreply.github.com"
cd ./wiki/
git add .
git diff-index --quiet HEAD || git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push