-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.16 KB
/
javadocs.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
43
44
45
46
47
48
49
50
name: Javadocs Generator
on:
# Manual workflow trigger
workflow_dispatch: {}
# Run every ~12 hours
schedule:
- cron: '0 */12 * * *'
jobs:
javadocs:
name: Generate javadocs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clean up folder
run: rm -rf Slimefun4/
- name: Clone repository
run: git clone https://github.com/TheBusyBiscuit/Slimefun4
- name: Set up Java 17 JDK
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Generate Javadocs
run: cd Slimefun4 && mvn javadoc:javadoc
# Move to keep old dir and not need to rewrite everything
- run: rm -rf Slimefun4/docs && mv Slimefun4/javadocs Slimefun4/docs
- name: Push to repository
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
push-branch: 'master'
commit-message: 'Updated Javadocs'
force-add: 'true'
files: Slimefun4/docs
name: TheBusyBot
email: ${{ secrets.BOT_EMAIL }}