Skip to content

Commit

Permalink
docs: build docs only from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
empicano committed Dec 6, 2022
1 parent 23f4502 commit ab736ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: docs

on:
push:
branches: [main]
paths:
- "docs/**"
- .github/workflows/docs.yml
pull_request:
paths:
- "docs/**"
- .github/workflows/docs.yml
Expand Down Expand Up @@ -33,7 +38,7 @@ jobs:
run: scripts/docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/add-sphinx'
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
Expand Down

0 comments on commit ab736ac

Please sign in to comment.