2020-11-16 00:55:38 +01:00
|
|
|
name: Build and deploy Javadoc
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-08-05 16:37:34 +02:00
|
|
|
branches: [main]
|
2020-11-16 00:55:38 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-22 01:55:55 +02:00
|
|
|
- name: Set up JDK 17
|
2020-11-16 00:55:38 +01:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-10-22 01:55:55 +02:00
|
|
|
java-version: 17
|
2023-03-12 14:15:47 +01:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-11-16 00:55:38 +01:00
|
|
|
- name: Build javadoc
|
2023-03-12 14:15:47 +01:00
|
|
|
run: ./gradlew javadoc
|
2020-11-16 00:55:38 +01:00
|
|
|
|
2023-08-05 17:01:27 +02:00
|
|
|
- name: Deploy javadocs
|
2020-11-16 00:55:38 +01:00
|
|
|
uses: s0/git-publish-subdir-action@develop
|
|
|
|
env:
|
2023-08-05 17:01:27 +02:00
|
|
|
REPO: git@github.com:hollow-cube/javadocs.git
|
|
|
|
BRANCH: main
|
2021-08-14 14:40:20 +02:00
|
|
|
FOLDER: build/docs/javadoc
|
2023-08-05 17:01:27 +02:00
|
|
|
TARGET_DIR: minestom-ce
|
|
|
|
SSH_PRIVATE_KEY: ${{ secrets.JAVADOC_DEPLOY_PRIVATE_KEY }}
|
2021-05-18 14:06:28 +02:00
|
|
|
CLEAR_GLOBS_FILE: ".github/javadoc-publish-clear"
|