Skip to content

Commit

Permalink
Imporve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Aug 7, 2024
1 parent 8e0b6ad commit 870bb87
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/mkdocs-deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 870bb87

Please sign in to comment.