Merge remote-tracking branch 'origin/master' #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy Minestom-fe and Javadocs | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- src/** | |
- "**.kts" | |
- gradle/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build javadoc | |
run: ./gradlew javadoc | |
- name: Deploy javadoc to its assigned branch | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: javadoc | |
FOLDER: build/docs/javadoc | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CLEAR_GLOBS_FILE: ".github/javadoc-publish-clear" | |
- name: Trigger Jitpack Build | |
run: curl "https://jitpack.io/com/github/ItsFelix5/Minestom-fe/${GITHUB_SHA:0:10}/build.log" |