Minestom/.github/workflows/javadoc.yml
mworzala 66ef08f01b hollow-cube/javadocs-to-javadoc-repo
(cherry picked from commit c3ec996ff7)
2024-02-09 14:27:43 -05:00

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"