Skip to content

Commit

Permalink
dev: sparce-checkout to optomise book publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Oct 19, 2023
1 parent c25bdc0 commit d608173
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.PAT || secrets.GITHUB_TOKEN }}"
fetch-depth: 0 # fetch all history, only checkout specific directories
sparse-checkout: |
docs
overrides
- run: echo "🐙 ${{ github.repository }} repository sparse-checkout to the CI runner."
- uses: actions/setup-python@v4
with:
python-version: 3.x
Expand Down

0 comments on commit d608173

Please sign in to comment.