Skip to content

Commit 2fdc57d

Browse files
update doxygen (#625)
* update doxygen * Update doxygen.yml * Update doxygen.yml * Update doxygen.yml * add more
1 parent a110510 commit 2fdc57d

File tree

2 files changed

+2896
-67
lines changed

2 files changed

+2896
-67
lines changed

.github/workflows/doxygen.yml

Lines changed: 8 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,19 @@ on:
55
inputs:
66
branch_name:
77
description: 'Which git branch should I check out?'
8-
required: true
9-
default: 'master'
10-
doc_version:
11-
description: 'Documentation version to generate'
12-
required: true
13-
default: '5.1.0'
8+
required: true
9+
1410
java_version:
1511
description: 'Java SDK version to use for documentation'
1612
required: true
17-
default: '5.1.0'
1813

1914

2015
jobs:
2116
build:
2217
runs-on: ubuntu-latest
2318
env:
2419
BRANCH_NAME: ${{ github.event.inputs.branch_name }}
25-
DOC_VERSION: ${{ github.event.inputs.doc_version }}
2620
JAVA_VERSION: ${{ github.event.inputs.java_version }}
27-
ENSITE_PASSWORD: ${{ secrets.ENSITE_PASSWORD }}
28-
ZHSITE_PASSWORD: ${{ secrets.ZHSITE_PASSWORD }}
29-
3021

3122
steps:
3223
- name: Checkout code
@@ -45,62 +36,12 @@ jobs:
4536
run: |
4637
echo "PROJECT_NUMBER=${JAVA_VERSION}" >> doxygen/java-config
4738
mkdir -p "${BRANCH_NAME}/java/${JAVA_VERSION}"
48-
echo "OUTPUT_DIRECTORY=${BRANCH_NAME}/java/${JAVA_VERSION}" >> doxygen/java-config
39+
echo "OUTPUT_DIRECTORY=${JAVA_VERSION}" >> doxygen/java-config
4940
doxygen doxygen/java-config
5041
51-
# Compresses HTML files into a tar.gz file
52-
- name: compress all API reference
53-
run: |
54-
tar -zcvf api_doc.tar.gz "${BRANCH_NAME}"
55-
ls -ll
56-
57-
- name: check if file exists
58-
run: |
59-
if [ -f api_doc.tar.gz ]; then
60-
echo "File exists"
61-
else
62-
echo "File does not exist"
63-
exit 1
64-
fi
65-
66-
- name: transfer api reference to nebula server
67-
uses: appleboy/[email protected]
68-
with:
69-
host: 20.163.77.63
70-
username: azureuser
71-
password: ${{ env.ENSITE_PASSWORD }}
72-
port: 404
73-
source: api_doc.tar.gz
74-
target: /var/www/ent-docs/${{ env.DOC_VERSION }}/
75-
76-
- name: uncompress api reference in nebula server
77-
uses: appleboy/[email protected]
78-
with:
79-
host: 20.163.77.63
80-
username: azureuser
81-
password: ${{ env.ENSITE_PASSWORD }}
82-
port: 404
83-
script: |
84-
tar -zxf /var/www/ent-docs/${{ env.DOC_VERSION}}/api_doc.tar.gz -C /var/www/ent-docs/${{ env.DOC_VERSION}}/
85-
tar -zxf /var/www/ent-docs/${{ env.DOC_VERSION}}/api_doc.tar.gz -C /var/www/cloud/master/
86-
87-
- name: transfer api reference to yueshu server
88-
uses: appleboy/[email protected]
89-
with:
90-
host: 121.40.218.31
91-
username: root
92-
password: ${{ env.ZHSITE_PASSWORD }}
93-
port: 404
94-
source: api_doc.tar.gz
95-
target: /var/www/ent-docs/${{ env.DOC_VERSION }}/
96-
97-
- name: uncompress api reference in yueshu server
98-
uses: appleboy/[email protected]
42+
# Deploy the generated HTML files to the gh-pages branch
43+
- name: Deploy to gh-pages
44+
uses: JamesIves/github-pages-deploy-action@v4
9945
with:
100-
host: 121.40.218.31
101-
username: root
102-
password: ${{ env.ZHSITE_PASSWORD }}
103-
port: 404
104-
script: |
105-
tar -zxf /var/www/ent-docs/${{ env.DOC_VERSION}}/api_doc.tar.gz -C /var/www/ent-docs/${{ env.DOC_VERSION}}/
106-
tar -zxf /var/www/ent-docs/${{ env.DOC_VERSION}}/api_doc.tar.gz -C /var/www/cloud/master/
46+
folder: ${JAVA_VERSION}/html
47+
target-folder: ${JAVA_VERSION}

0 commit comments

Comments
 (0)