mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-12-05 02:02:53 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
32 lines
966 B
YAML
32 lines
966 B
YAML
name: Deploy the dev documentation
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'docs/**'
|
|
- mkdocs.yml
|
|
branches:
|
|
- main
|
|
jobs:
|
|
deploy:
|
|
name: Deploy the dev documentation
|
|
runs-on: ubuntu-2404-2core
|
|
steps:
|
|
- name: Checkout main
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: true
|
|
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
with:
|
|
python-version: 3.x
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools wheel
|
|
pip install -r docs/build/requirements.txt
|
|
- name: Configure the git user
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
- name: Deploy the dev documents
|
|
run: mike deploy --push dev
|