-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (44 loc) · 1.27 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
42
43
44
name: Publish Docs
on:
workflow_dispatch:
inputs:
version:
description: 'Version to publish'
required: true
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '17'
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
ref: v${{ github.event.inputs.version }}
- name: Publish Documentation
id: docs
uses: gradle/gradle-build-action@v3
with:
arguments: |
docs
--refresh-dependencies
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish to Github Pages
if: success()
uses: grails/github-pages-deploy-action@grails
env:
BETA: ${{ contains(github.event.inputs.version, 'M') }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
FOLDER: build/docs
VERSION: ${{ github.event.inputs.version }}
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}