mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-27 10:31:51 +01:00
Add javadoc auto-build on master
This commit is contained in:
parent
e3b1cbd411
commit
61c4aa7d93
27
.github/workflows/javadoc.yml
vendored
Normal file
27
.github/workflows/javadoc.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Build and deploy Javadoc
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.11
|
||||||
|
- name: Build javadoc
|
||||||
|
run: gradle javadoc
|
||||||
|
|
||||||
|
- name: Deploy javadoc to its assigned branch
|
||||||
|
uses: s0/git-publish-subdir-action@develop
|
||||||
|
env:
|
||||||
|
REPO: self
|
||||||
|
BRANCH: javadoc
|
||||||
|
FOLDER: docs
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user