Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_run:
workflows: ["Main-CI"]
types: [completed]
branches: [main]
branches: [main, topic/doc]

permissions:
contents: write
Expand All @@ -25,20 +25,29 @@ jobs:
- name: Assemble Site Structure
run: |
mkdir -p public/api public/user

echo -n "Working Dir: "
pwd
echo "Working Dir Contents: "
ls

# 1. Landing page (www is now at the root of the artifact)
cp -r exip-docs/www/* public/
cp -r ./www/* public/

# 2. User guide
cp -r exip-docs/user/* public/user/
cp -r ./user/* public/user/

# 3. API docs (doxygen/html is now at the root of the artifact)
cp -r exip-docs/dev/doxygen/html/* public/api/
cp -r ./dev/doxygen/html/* public/api/

touch public/.nojekyll

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
uses: peaceiris/actions-gh-pages@v4
with:
folder: public
branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public # Must match your 'Assemble Site' output folder
publish_branch: gh-pages
# This automatically adds .nojekyll for you
enable_jekyll: false