-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (42 loc) · 1.35 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
45
46
47
48
49
50
51
52
on:
workflow_dispatch:
inputs:
version:
description: 'SDK API version'
required: true
name: Deploy docs
# Declare default permissions as read only.
permissions: read-all
jobs:
docs:
name: Build and release docs
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: sdk
- name: Checkout
uses: actions/checkout@v4
with:
path: doc
ref: gh-pages
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9
- run: ./gradlew -Pversion=${{ github.event.inputs.version }} alljavadoc
working-directory: sdk
- run: rsync -r sdk/build/docs/javadoc/ doc/javadoc
- uses: stefanzweifel/git-auto-commit-action@3d1b5e078a85df99db0cb2441cd4309b09d86253
with:
repository: doc
commit_message: "Update javadoc"
commit_user_name: automation-commercetools
commit_user_email: [email protected]
commit_author: Auto Mation <[email protected]>