Skip to content

Commit

Permalink
dev: checkout v4 & shallow-clone, add docs publish-book workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Nov 5, 2023
1 parent f5acbb5 commit 74b5040
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/publish-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,36 @@ permissions:
contents: write

jobs:
deploy:
publish-book:
name: MkDocs Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "πŸš€ Job automatically triggered by ${{ github.event_name }}"
- run: echo "🐧 Job running on ${{ runner.os }} server"
- run: echo "πŸ™ Using ${{ github.ref }} branch from ${{ github.repository }} repository"

- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
docs
overrides
- run: echo "πŸ™ ${{ github.repository }} repository sparse-checkout to the CI runner."
- uses: actions/setup-python@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v3

- name: Cache
uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache

- run: pip install mkdocs-material mkdocs-callouts mkdocs-glightbox mkdocs-git-revision-date-localized-plugin mkdocs-redirects pillow cairosvg
- run: mkdocs gh-deploy --force

# Summary and status
- run: echo "🎨 MkDocs Publish Book workflow completed"
- run: echo "🍏 Job status is ${{ job.status }}."

0 comments on commit 74b5040

Please sign in to comment.