Skip to content

Commit

Permalink
fix: :wrench - Provide poetry in CI mkdocs job
Browse files Browse the repository at this point in the history
  • Loading branch information
afranzi committed Feb 2, 2024
1 parent 6c344d7 commit dff13d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Pypi
name: CD - Deploy to Pypi

on:
push:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ jobs:
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: "3.10"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Poetry
run: pip install poetry

- name: Install Dependencies
run: poetry install --only=docs
- run: mkdocs gh-deploy --force

- name: Documentation Github deployment
run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-yaml
exclude: (mkdocs.yml)
exclude: (ci-mkdocs.yml)
- id: debug-statements
- id: detect-aws-credentials
args: [ --allow-missing-credentials ]
Expand Down

0 comments on commit dff13d8

Please sign in to comment.