mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-09 20:30:08 +01:00
521583cc75
Update github workflow to decide which files to clear
29 lines
593 B
YAML
29 lines
593 B
YAML
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: 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 }}
|
|
CLEAR_GLOBS_FILE: ".github/javadoc-publish-clear"
|