Skip to content

Merge pull request #28 from StrangeRanger/dependabot/pip/mkdocs-git-r… #19

Merge pull request #28 from StrangeRanger/dependabot/pip/mkdocs-git-r…

Merge pull request #28 from StrangeRanger/dependabot/pip/mkdocs-git-r… #19

Workflow file for this run

name: Deploy Customized Unix Terminal GitHub Page
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
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
- name: Cache pipenv virtual environment
uses: actions/cache@v3
with:
path: .venv
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ 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