Skip to content

Commit

Permalink
publish docs on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gelzinyte committed Sep 2, 2024
1 parent c350ea9 commit ade7234
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,9 @@ jobs:
cd docs
make html
# event type from https://stackoverflow.com/questions/61886993/in-github-actions-how-to-get-the-type-of-a-trigger-event-as-a-variable
# conditional control ("if:") from https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
# dependency from https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow

deploy-docs:
if: github.event.action == 'push'
name: Publish documentation
if: startsWith(github.ref, "refs/tags/")
needs: build-docs
runs-on: ubuntu-latest

Expand Down

0 comments on commit ade7234

Please sign in to comment.