-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (54 loc) · 2.05 KB
/
Javadoc.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
51
52
53
54
55
56
57
58
59
60
61
62
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: JavaDoc Generator
on:
push:
branches: [ 3.x ]
jobs:
build-on-ubuntu:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout main branch from GitHub
uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Seting up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: |
chmod +x gradlew
./gradlew MAStaff-API:javadoc
- name: clone JavaDoc
run: |
ls
cd ..
git clone https://github.com/Angelillo15/javadocs.git
cd javadocs
git checkout master
cd ..
rm -r javadocs/javadocs/mastaff/
ls javadocs/javadocs/
cp -r MAStaff/MAStaff-API/build/docs/javadoc javadocs/javadocs/mastaff/
ls javadocs/javadocs/mastaff
cd javadocs
git config --global user.email angelrizosrubios@gmail.com
git config --global user.name Angelillo15
git add .
git commit -m "Update javadocs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: master
directory: /home/runner/work/MAStaff/javadocs
repository: Angelillo15/javadocs