Add monotonic effects (mo()), ported from brms #1338
Workflow file for this run
This file contains hidden or 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: Build and publish documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| jobs: | |
| build-docs: | |
| if: github.repository == 'bambinos/bambi' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: 1.8.26 | |
| - uses: prefix-dev/setup-pixi@v0.9.2 | |
| with: | |
| pixi-version: v0.62.2 | |
| environments: "dev" | |
| - name: Build documentation | |
| shell: bash | |
| # 1. I have to 'cd' because interlinks does not allow to pass a different path | |
| # 2. sphobjinv and mv are needed to offer objects.inv to other projects | |
| run: | | |
| cd docs | |
| pixi run -e dev python -m quartodoc build --verbose | |
| pixi run -e dev python -m quartodoc interlinks | |
| quarto render | |
| touch _site/.nojekyll | |
| pixi run -e dev python -m sphobjinv convert -o zlib objects.txt objects.inv | |
| mv objects.inv _site/objects.inv | |
| ls _site | |
| - name: Publish documentation to GitHub | |
| if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') | |
| uses: quarto-dev/quarto-actions/publish@v2 | |
| with: | |
| target: gh-pages | |
| render: false | |
| path: docs/_site | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # NOTES | |
| # 1. The job runs only in the bambinos/bambi repository. It does not make sense to do it elsewhere. | |
| # 2. The rendered webpage is published ONLY when the job was triggered by: | |
| # - A commit to main | |
| # - A tagged release |