Skip to content

Commit

Permalink
Update documentation workflow triggers based on SQuaRE template
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Mar 1, 2024
1 parent cdce801 commit c79b0e0
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Build and upload documentation

on:
"on":
merge_group: {}
pull_request: {}
push:
branches:
- main
tags:
- "*"
pull_request:
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- "dependabot/**"
- "gh-readonly-queue/**"
- "renovate/**"
- "tickets/**"
- "u/**"
release:
types: [published]

jobs:
build_sphinx_docs:
Expand Down Expand Up @@ -49,4 +58,7 @@ jobs:
dir: doc/_build/html
username: ${{ secrets.LTD_USERNAME }}
password: ${{ secrets.LTD_PASSWORD }}
if: github.event_name != 'pull_request'
if: >
github.event_name != 'merge_group'
&& (github.event_name != 'pull_request'
|| startsWith(github.head_ref, 'tickets/'))

0 comments on commit c79b0e0

Please sign in to comment.