Skip to content

Commit

Permalink
ci: update docs job condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed May 31, 2024
1 parent 8bda77c commit f87a700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set target branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
id: target-branch
run: |
set -x
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Checkout docs sources
uses: actions/checkout@v3
- name: Checkout docs target branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
make html
- name: Copy & push the generated HTML
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
run: |
set -x
cd docs-target
Expand Down

0 comments on commit f87a700

Please sign in to comment.