Skip to content

refactor: πŸ› οΈ remove unnecessary constructor in RTDetrDetectionModel (… #41

refactor: πŸ› οΈ remove unnecessary constructor in RTDetrDetectionModel (…

refactor: πŸ› οΈ remove unnecessary constructor in RTDetrDetectionModel (… #41

Workflow file for this run

name: πŸ› οΈ Build and πŸ“š Publish Docs
on:
push:
branches:
- main
workflow_dispatch:
release:
types: [published]
# Ensure only one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref}}
cancel-in-progress: true
# Restrict permissions by default
permissions:
contents: write # Required for committing to gh-pages
pages: write # Required for deploying to Pages
pull-requests: write # Required for PR comments
jobs:
deploy:
name: πŸ“š Publish Docs
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: 🐍 Install uv and set Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
- name: πŸ—οΈ Install dependencies
run: |
uv pip install -r pyproject.toml --group docs
- name: βš™οΈ Configure git for github-actions
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: πŸ“š Build and Publish Docs
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
run: |
uv run mkdocs gh-deploy --force