From 15b610530e1265b9e015e40d5af585b97a120667 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Mon, 3 Apr 2023 15:54:52 +0530 Subject: [PATCH] workflow stability (#278) --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ded87751..185bbc42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,17 @@ -name: Publish package to the Maven Central Repository +name: CI on: - release: - types: [published] - + push: + branches: + - master + tags: + - v[0-9]+.[0-9]+.[0-9]+* + pull_request: + branches: + - master # Jobs jobs: - codecov-coverage: + test: + name: Run tests and publish test coverage runs-on: ubuntu-latest steps: - name: Checkout code @@ -32,6 +38,8 @@ jobs: verbose: true publish: + if: startsWith(github.ref, 'refs/tags/v') + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2