Skip to content

Commit 31c9dce

Browse files
authored
Merge pull request #1570 from CesiumGS/cesium.com-staging
Publish documentation to the web site
2 parents 8dda5df + 65ffa81 commit 31c9dce

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/prod.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: prod
2+
on:
3+
push:
4+
branches:
5+
- 'cesium.com'
6+
- 'cesium.com-staging'
7+
jobs:
8+
deploy-docs:
9+
runs-on: ubuntu-22.04
10+
env:
11+
AWS_ACCESS_KEY_ID: ${{ secrets.NATIVE_ACCESS_KEY }}
12+
AWS_SECRET_ACCESS_KEY: ${{ secrets.NATIVE_SECRET_KEY }}
13+
AWS_REGION: us-east-1
14+
steps:
15+
- name: Install Doxygen
16+
run: |
17+
cd ~
18+
wget https://github.com/doxygen/doxygen/releases/download/Release_1_12_0/doxygen-1.12.0.linux.bin.tar.gz
19+
tar xzf doxygen-1.12.0.linux.bin.tar.gz
20+
export PATH=$PWD/doxygen-1.12.0/bin:$PATH
21+
echo "PATH=$PATH" >> "$GITHUB_ENV"
22+
doxygen --version
23+
- name: Check out repository code
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
- name: Mark documentation official
28+
if: ${{ github.ref_name == 'cesium.com' }}
29+
run: |
30+
sed -i 's/PRE-RELEASE/ /g' Documentation/Doxyfile
31+
- name: Generate Documentation
32+
run: |
33+
npm install
34+
npm run doxygen
35+
- name: Deploy to cesium.com
36+
if: ${{ github.ref_name == 'cesium.com' }}
37+
run: |
38+
aws s3 sync Documentation/Reference/html/ s3://cesium-website/cesium-unreal/ref-doc/ --cache-control "public, max-age=1800" --delete
39+
- name: Deploy to cesium.com staging
40+
if: ${{ github.ref_name == 'cesium.com-staging' }}
41+
run: |
42+
aws s3 sync Documentation/Reference/html/ s3://cesium-website/cesium-unreal/ref-doc-staging/ --cache-control "public, max-age=1800" --delete

Documentation/Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PROJECT_NUMBER = $(npm_package_version)
5454
# for a project that appears at the top of each page and should give viewer a
5555
# quick idea about the purpose of the project. Keep the description short.
5656

57-
PROJECT_BRIEF =
57+
PROJECT_BRIEF = PRE-RELEASE
5858

5959
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
6060
# in the documentation. The maximum height of the logo should not exceed 55
@@ -947,7 +947,7 @@ INPUT = ./README.md \
947947
./ \
948948
./Documentation \
949949
./Documentation/Pages \
950-
./Source/CesiumRuntime/Public
950+
./Source/CesiumRuntime/Public
951951

952952
# This tag can be used to specify the character encoding of the source files
953953
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

0 commit comments

Comments
 (0)