diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b900b5a7..29bf0b6f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,10 +1,13 @@ --- name: Publish docs on: - workflow_dispatch: + pull_request: + types: [opened, synchronize] + paths: + - "cmd/docgen.go" + - "**.md" push: - branches: ['docs*'] - tags: ['v*'] + branches: [main] jobs: publish-docs: