Skip to content

Commit

Permalink
Merge pull request #544 from CesiumGS/cesium.com-staging
Browse files Browse the repository at this point in the history
Publish docs to cesium.com
  • Loading branch information
kring authored Jan 9, 2025
2 parents e03b3ee + 855879b commit 8f09d36
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: prod
on:
push:
branches:
- 'cesium.com'
- 'cesium.com-staging'
jobs:
deploy-docs:
runs-on: ubuntu-22.04
env:
AWS_ACCESS_KEY_ID: ${{ secrets.NATIVE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.NATIVE_SECRET_KEY }}
AWS_REGION: us-east-1
steps:
- name: Install Doxygen
run: |
cd ~
wget https://github.com/doxygen/doxygen/releases/download/Release_1_12_0/doxygen-1.12.0.linux.bin.tar.gz
tar xzf doxygen-1.12.0.linux.bin.tar.gz
export PATH=$PWD/doxygen-1.12.0/bin:$PATH
echo "PATH=$PATH" >> "$GITHUB_ENV"
doxygen --version
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Mark documentation official
if: ${{ github.ref_name == 'cesium.com' }}
run: |
sed -i 's/PRE-RELEASE/ /g' Documentation~/Doxyfile
- name: Generate Documentation
run: |
npm run doxygen
- name: Deploy to cesium.com
if: ${{ github.ref_name == 'cesium.com' }}
run: |
aws s3 sync Documentation~/Reference/html/ s3://cesium-website/cesium-unity/ref-doc/ --cache-control "public, max-age=1800" --delete
- name: Deploy to cesium.com staging
if: ${{ github.ref_name == 'cesium.com-staging' }}
run: |
aws s3 sync Documentation~/Reference/html/ s3://cesium-website/cesium-unity/ref-doc-staging/ --cache-control "public, max-age=1800" --delete
2 changes: 1 addition & 1 deletion Documentation~/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PROJECT_NUMBER = $(npm_package_version)
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF =
PROJECT_BRIEF = PRE-RELEASE

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
Expand Down

0 comments on commit 8f09d36

Please sign in to comment.