Skip to content

Commit

Permalink
Build docs for all PRs, only publish for v2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Feb 15, 2024
1 parent 99e4d68 commit 11b7b61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- v2.x
- master
- main

jobs:

Expand Down Expand Up @@ -39,7 +41,7 @@ jobs:
cp -r doc/poster build/doc/html/
- name: Deploy to GitHub Pages
if: ${{ success() && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
if: ${{ success() && github.ref == 'refs/heads/v2.x' && github.event_name == 'push' }}
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
Expand Down

0 comments on commit 11b7b61

Please sign in to comment.