From 870bb87cdfa765660e31af879287a3ec2cac885d Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Wed, 7 Aug 2024 14:46:23 -0700 Subject: [PATCH] Imporve workflow --- .github/workflows/mkdocs-deploy.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml index e93a0e7..60ae5c1 100644 --- a/.github/workflows/mkdocs-deploy.yml +++ b/.github/workflows/mkdocs-deploy.yml @@ -1,10 +1,8 @@ -name: Deploy customized unix terminal github page +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: @@ -20,7 +18,11 @@ jobs: python-version: 3.x - uses: actions/cache@v2 with: - key: ${{ github.ref }} path: .cache - - run: pip install -r mkdocs-requirements.txt + key: ${{ runner.os }}-pip-${{ hashFiles('mkdocs-requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - run: pip install -r mkdocs-requirements.txt + - run: mkdocs build --strict # Optional build step - run: mkdocs gh-deploy --force +