-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (37 loc) · 1.08 KB
/
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
37
38
39
40
41
name: Build and deploy documentation to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
if: "!contains(github.event.head_commit.message, 'dependabot') && !contains(github.event.head_commit.message, 'nodocs')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Build HTML
run: ./gradlew api:dokkaHtml --no-daemon --stacktrace
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'api/build/dokka/html'
deploy:
if: "!contains(github.event.head_commit.message, 'dependabot')"
environment:
name: github-pages
url: 'https://hibiscusmc.github.io/HMCWraps/'
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1