Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Sep 16, 2024
1 parent 88f4756 commit 959425a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/mkdocs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,25 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
env:
PIPENV_VENV_IN_PROJECT: '1'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
- name: Cache pipenv virtual environment
uses: actions/cache@v3
with:
path: .cache
key: ${{ runner.os }}-pip-${{ hashFiles('mkdocs-requirements.txt') }}
path: .venv
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r mkdocs-requirements.txt
- run: mkdocs build --strict
- run: mkdocs gh-deploy --force

${{ runner.os }}-pipenv-
- name: Install pipenv
run: python -m pip install --upgrade pip pipenv
- name: Install dependencies with pipenv
run: pipenv install --deploy --ignore-pipfile
- name: Build the site with mkdocs
run: pipenv run mkdocs build --strict
- name: Deploy to GitHub Pages
run: pipenv run mkdocs gh-deploy --force

0 comments on commit 959425a

Please sign in to comment.