Skip to content

Commit

Permalink
Switch to using tags as deploy trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisiKoleni committed Mar 26, 2020
1 parent 8e2c78f commit 863071b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Java CI

on:
push:
release:
types: [created]
branches:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
test:
Expand All @@ -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
Expand Down

0 comments on commit 863071b

Please sign in to comment.