-
Notifications
You must be signed in to change notification settings - Fork 12
81 lines (71 loc) · 2.36 KB
/
docs.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Original Author -> Harry Yang ([email protected]) https://taketoday.cn
# Copyright © TODAY & 2017 - 2024 All Rights Reserved.
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see [http://www.gnu.org/licenses/]
name: Docs
on:
push:
branches:
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-docs:
if: github.repository_owner == 'TAKETODAY'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Set up JDK 17 🔧
uses: actions/[email protected]
with:
java-version: 17
distribution: adopt
- name: Setup Gradle 🔧
uses: gradle/[email protected]
- name: Build Docs 🔧
run: ./gradlew -DCI=true --no-daemon --max-workers=4 :infra-docs:antora
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: "${{ github.workspace }}/infra-docs/build/site"
#
# # Deployment job
# deploy:
# concurrency: ci-${{ github.ref }}
# runs-on: ubuntu-latest
# needs: build-docs
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Download Artifacts
# uses: actions/download-artifact@v1
# with:
# name: site
#
# - name: Deploy to GitHub Pages
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: 'site'