Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,42 @@ jobs:
fail_ci_if_error: true
verbose: true

build-docs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Set up Python
uses: actions/setup-python@cfd55ca82492758d853442341ad4d8010466803a
with:
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@ff8a7d7de27005376176819789742a2280cc35e2

- name: Configure Poetry
run: poetry config virtualenvs.in-project true
shell: bash

- name: Cache dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: .venv
key: v1-${{ runner.os }}-python-3.12-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
v1-${{ runner.os }}-python-3.12-

- name: Install dependencies
run: poetry install --no-interaction --no-root
shell: bash

- name: Build documentation
run: poetry run mkdocs build --strict
shell: bash

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
needs: build-docs
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ venv.bak/
.ropeproject

# mkdocs documentation
/site
site/

# mypy
.mypy_cache/
Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Welcome to my_python_project!

This is the main page of your project's documentation.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
site_name: my_python_project
theme:
name: material
Loading