forked from PowerNukkitX/PowerNukkitX
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 968 Bytes
/
JavaDoc.yml
File metadata and controls
46 lines (37 loc) · 968 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
name: Build & Deploy Javadoc
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
name: Build and Deploy Javadoc
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build Javadoc
run: ./gradlew javadoc
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload Javadoc artifact
uses: actions/upload-pages-artifact@v4
with:
name: github-pages
path: build/docs/javadoc
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4