Skip to content

Add workflow to auto deploy with mkdocs gh-deploy #21

Add workflow to auto deploy with mkdocs gh-deploy

Add workflow to auto deploy with mkdocs gh-deploy #21

Workflow file for this run

name: Deploy customized unix terminal github page
on:
push:
# Runs on pushes targeting the default branch
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r mkdocs-requirements.txt
- run: mkdocs gh-deploy --force