-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 993 Bytes
/
JavaDoc.yml
File metadata and controls
34 lines (29 loc) · 993 Bytes
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
name: Generate JavaDoc
on: workflow_dispatch
jobs:
publish-and-doc:
runs-on: ubuntu-latest
if: {{ github.repository == 'PlumyGames/mgpp' }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: 'gradle'
- name: Build dokka doc
run: |
chmod +x gradlew
./gradlew :main:dokkaHtml
- name: Update document
run: |
cd ../
git clone --depth 1 https://github.com/PlumyGames/mgppDoc.git
cp -r ./mgpp/main/build/dokka/html/* ./mgppDoc
cd mgppDoc
git add .
git config --global user.email "Li_plum@outlook.com"
git config --global user.name "liplum"
git commit --allow-empty -m "${{ github.event.head_commit.message }}"
git push https://Liplum:${{ secrets.API_TOKEN_GITHUB }}@github.com/PlumyGames/mgppDoc