Skip to content

chore(pre-commit): setup pre-commit #15

chore(pre-commit): setup pre-commit

chore(pre-commit): setup pre-commit #15

Workflow file for this run

on:
push:
branches:
- main
name: Render and Publish
jobs:
docs-publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: πŸ”΅ Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.6.25
- name: πŸš€ Install uv
uses: astral-sh/setup-uv@v2
- name: 🐍 Set up Python 3.13
run: uv python install 3.13
- name: πŸ“¦ Install brand_yaml and dependencies
run: uv sync --python 3.13 --no-dev --extra docs
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
# - name: Setup R
# uses: r-lib/actions/setup-r@v2
- name: πŸ”Œ Activate venv
run: |
source .venv/bin/activate
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
- name: 🏭 Build quartodoc inventory
run: uv run quartodoc interlinks
working-directory: docs
- name: 🚒 Publish to Internal Posit Connect (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: connect
path: docs
CONNECT_SERVER: ${{ secrets.CONNECT_SERVER }}
CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}