Skip to content

Commit

Permalink
Run docs CI on PRs; deploy only in main
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed Nov 16, 2023
1 parent 7249a78 commit 94c61d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-docs2.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Docs deploy
name: Docs

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
Expand Down Expand Up @@ -33,6 +35,7 @@ jobs:
touch docs2/_build/html/.nojekyll
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs2/_build/html # The folder the action should deploy.

0 comments on commit 94c61d4

Please sign in to comment.