From cdcef7c7ae8acf2073efc0c673b8f86d9ff028c4 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 23 Sep 2025 22:32:02 +0200 Subject: [PATCH] Refactor docs workflow to trigger on version tags --- .github/workflows/docs.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e7cb2da..8f2254a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,19 +3,13 @@ name: Build and Deploy Documentation on: push: branches: [ main ] - paths: - - 'docs/**' - - 'mkdocs.yml' - - 'docs-requirements.txt' - - '.github/workflows/docs.yml' + tags: [ 'v*' ] pull_request: branches: [ main ] paths: - 'docs/**' - 'mkdocs.yml' - 'docs-requirements.txt' - release: - types: [published] permissions: contents: write @@ -81,7 +75,7 @@ jobs: deploy-release: runs-on: ubuntu-latest - if: github.event_name == 'release' + if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout uses: actions/checkout@v4