mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-01 08:20:42 +01:00
66ef08f01b
(cherry picked from commit c3ec996ff7
)
32 lines
744 B
YAML
32 lines
744 B
YAML
name: Build and deploy Javadoc
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 17
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Build javadoc
|
|
run: ./gradlew javadoc
|
|
|
|
- name: Deploy javadocs
|
|
uses: s0/git-publish-subdir-action@develop
|
|
env:
|
|
REPO: git@github.com:hollow-cube/javadocs.git
|
|
BRANCH: main
|
|
FOLDER: build/docs/javadoc
|
|
TARGET_DIR: minestom-ce
|
|
SSH_PRIVATE_KEY: ${{ secrets.JAVADOC_DEPLOY_PRIVATE_KEY }}
|
|
CLEAR_GLOBS_FILE: ".github/javadoc-publish-clear"
|