forked from Minestom/Minestom
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 930 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"