Skip to content

Commit

Permalink
Optimizing the deploy.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashguptas committed Nov 13, 2024
1 parent 0bd97d7 commit b38b2fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ on:
push:
branches:
- main
# Only run deployment if files in these paths change
paths:
- 'notebooks/**'
- '_config.yml'
- '_toc.yml'
- 'requirements.txt'

jobs:
deploy-book:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
Expand All @@ -18,6 +27,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip' # This caches pip dependencies

- name: Install dependencies
run: |
Expand Down

0 comments on commit b38b2fc

Please sign in to comment.