From 863071b306a29098a736c1bd21c99ecd64b535d0 Mon Sep 17 00:00:00 2001 From: Christian Femers Date: Fri, 27 Mar 2020 00:47:01 +0100 Subject: [PATCH] Switch to using tags as deploy trigger --- .github/workflows/maven.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0ff0b160..515c8f12 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,8 +2,9 @@ name: Java CI on: push: - release: - types: [created] + branches: + tags: + - '[0-9]+.[0-9]+.[0-9]+*' jobs: test: @@ -21,8 +22,8 @@ jobs: - name: Test with Maven and JDK ${{ matrix.java }} run: mvn -B clean test deploy: + if: startsWith(github.event.ref, 'refs/tags/') needs: test - if: github.event_name == 'release' && github.event.action == 'created' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2