-
-
Notifications
You must be signed in to change notification settings - Fork 68
38 lines (37 loc) · 965 Bytes
/
dokka.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
37
38
name: Javadoc
on:
push:
branches:
- master
jobs:
javadoc:
runs-on: ubuntu-latest
if: github.repository == 'spotbugs/spotbugs-gradle-plugin'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version-file: .java-version
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Generate Dokka HTML
run: ./gradlew dokkaHtml
- name: Prepare to Deploy
run: |
npm ci
rm -f .git/hooks/commit-msg
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
FOLDER: build/dokka/html/