forked from spotify/github-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 841 Bytes
/
gen-java-docs.yml
File metadata and controls
35 lines (28 loc) · 841 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
name: Generate Java Docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: corretto
- name: Build with Maven
run: mvn clean install
- name: Generate Javadocs
run: mvn javadoc:javadoc
# Publishes Javadocs to GitHub Pages by pushing to `gh-pages` branch
- name: Deploy Javadocs to GitHub Pages
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
mvn scm-publish:publish-scm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}