forked from Malinskiy/adam
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 823 Bytes
/
github-pages.yml
File metadata and controls
44 lines (35 loc) · 823 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
name: Docs
on:
push:
branches:
- master
# pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
env:
JAVA_VERSION: 17
JAVA_DISTRO: 'temurin'
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}
- name: Generate dokka files
run: ./gradlew :adam:dokkaGeneratePublicationHtml
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/api
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4