generated from wuespace/telestion-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 896 Bytes
/
docs.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
36
name: Docs
# Events that trigger this workflow
on:
push:
branches: [main]
jobs:
build-and-deploy:
name: Build and deploy documentation
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v3.3.0
- name: Set up JDK 16 💿
uses: actions/setup-java@v3.9.0
with:
distribution: 'zulu'
java-version: '16'
java-package: jdk
cache: 'gradle'
- name: Build documentation 🛠️
run: chmod +x gradlew && ./gradlew javadoc
env:
GITHUB_TOKEN: ${{ secrets.READ_PACKAGES }}
- name: Finalize build 🪄
run: touch build/docs/javadoc/.nojekyll
- name: Deploy documentation 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: build/docs/javadoc
clean: true