Skip to content

Commit

Permalink
Build on push/pull, don't publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez authored Aug 24, 2021
1 parent 45cea11 commit 8c2cda9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Maven Package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [created]

Expand All @@ -27,8 +31,3 @@ jobs:

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 8c2cda9

Please sign in to comment.