chore(pre-commit): setup pre-commit #15
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
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 }} |