diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80857ee..9efcf87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI on: push: branches: [main] + tags: ["v*"] pull_request: branches: [main] @@ -36,11 +37,11 @@ jobs: - name: Test run: pytest --cov=pakdocling --cov-report=xml - # --- Dry-run build on every push to main --- + # --- Dry-run build on main or release tags --- build: needs: test runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/checkout@v4