Skip to content

Commit

Permalink
Update doxygen.yml workflow to run on pushed tags and remove ifs to f…
Browse files Browse the repository at this point in the history
…ix running on tag pushes
  • Loading branch information
jonicho committed Oct 24, 2024
1 parent 7f9bd18 commit 04c9875
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build Doxygen Documentation and Deploy to GitHub Pages

on:
push:
branches: ["main"]
tags:
- "v*.*.*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -39,19 +40,13 @@ jobs:
- name: Make documentation
run: make doc
- name: Setup Pages
# Only when a release tag is pushed
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/configure-pages@v5
- name: Upload artifact
# Only when a release tag is pushed
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/html'

deploy:
# Only when a release tag is pushed
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 04c9875

Please sign in to comment.