Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EliHei2 authored Sep 12, 2024
1 parent f795638 commit 8a8b63a
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,11 @@ jobs:
with:
python-version: '3.10'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}


# Step 3: Install package and set PYTHONPATH
- name: Install package and documentation dependencies
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
export PYTHONPATH=$PYTHONPATH:$(pwd)/src/segger
# pip install -e .
# Step 4: Install MkDocs and required plugins
Expand All @@ -65,7 +51,7 @@ jobs:
# Step 6: Build the MkDocs site with verbose output
- name: Build MkDocs site
run: poetry run mkdocs gh-deploy --force
run: mkdocs gh-deploy --force


# Step 7: Upload the generated site directory as an artifact for GitHub Pages
Expand Down

0 comments on commit 8a8b63a

Please sign in to comment.