Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install only docs in publish #46

Merged
merged 4 commits into from
Sep 7, 2023
Merged
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
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ jobs:
with:
path: ~/.local
key: poetry-${{ runner.os }}-${{ env.POETRY_VERSION }}-${{ steps.setup-python.outputs.python-version }}
- name: Expect Poetry cached
id: expect-cached-poetry
- name: Install Poetry
id: install-poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: echo "Expected cached Poetry installation, but it was not found." && exit 1

uses: snok/install-poetry@v1
# If changing any of these, you must comment out the if statement above.
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Poetry git plugin
run: poetry self add poetry-git-version-plugin

Expand All @@ -45,13 +50,12 @@ jobs:
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Expect environment cached
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: echo "Expected cached environment, but it was not found." && exit 1

- name: Poetry Build
run: poetry build -v

- name: Poetry Install
run: poetry install -v --only=docs
- name: MKDocs Build
run: poetry run mkdocs build

Expand Down