Skip to content

Commit

Permalink
Fix docs deploy when tagging, render once on push
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed Oct 18, 2024
1 parent 6665d65 commit 5aa87d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ jobs:
if: >-
github.event_name != 'pull_request' &&
inputs.deploy-docs &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
(
github.event_name == 'tag' ||
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
)
needs:
- docs
- tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: CI
uses: ./.github/workflows/ci.yml
with:
deploy-docs: false
deploy-docs: true
permissions:
contents: write
id-token: write
Expand Down

0 comments on commit 5aa87d4

Please sign in to comment.