Bump prefix-dev/setup-pixi from 0.8.1 to 0.8.2 (#210) #710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Website | |
on: | |
push: | |
paths: | |
- "momentum/website/**" | |
- "pymomentum/**" | |
- ".github/workflows/publish_website.yml" | |
pull_request: | |
paths: | |
- "momentum/website/**" | |
- "pymomentum/**" | |
- ".github/workflows/publish_website.yml" | |
workflow_dispatch: | |
jobs: | |
build_docs_job: | |
runs-on: ubuntu-latest | |
steps: | |
# 0) Clean up disk | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
root-reserve-mb: 32768 | |
remove-dotnet: true | |
remove-android: true | |
remove-haskell: true | |
remove-codeql: true | |
remove-docker-images: true | |
# 1) Check out the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# 2) Build Docusaurus site with C++ docs (using Doxygen) | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: yarn | |
cache-dependency-path: ./momentum/website/yarn.lock | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen | |
- name: Build the Website | |
working-directory: momentum/website | |
run: | | |
yarn install --frozen-lockfile | |
yarn run build | |
# 3) Build Python API docs | |
- name: Set up pixi | |
uses: prefix-dev/setup-pixi@v0.8.2 | |
with: | |
cache: true | |
- name: Build Python API Documentation | |
run: | | |
MOMENTUM_BUILD_IO_FBX=ON \ | |
pixi run doc_py | |
# 4) Copy Python API Documentation to Docusaurus | |
- name: Copy Python API Documentation | |
run: | | |
cp -R build/python_api_doc momentum/website/build/python_api_doc | |
# 5) Upload the built website as an artifact | |
- name: Upload Built Website | |
uses: actions/upload-artifact@v4 | |
with: | |
name: built-website | |
path: momentum/website/build | |
# 5) Deploy Docusaurus folder to GitHub Pages | |
- name: Deploy to GiHub Pages | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: momentum/website/build |