Skip to content

Commit

Permalink
Run github-pages build only when changes are made to docs directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Joshi <[email protected]>
  • Loading branch information
joshiayush committed Nov 14, 2023
1 parent b53c517 commit 9bd861f
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,15 @@ name: github-pages

on:
push:
branches:
- docs
paths:
- 'docs/**'

permissions:
actions: write
contents: write

jobs:
commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install -r requirements.txt
- name: Adding executable permissions to manage.py
run: |
chmod +x ./tools/manage.py
- name: Converting IPython Notebooks to Markdowns
run: |
./tools/manage.py --generate-docs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: docs
commit_options: '--amend --no-edit'
push_options: '--force'

build:
needs: commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 9bd861f

Please sign in to comment.