Skip to content

Commit

Permalink
improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
angeliski committed Oct 26, 2024
1 parent 2b4d6f1 commit b02e076
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Java CI
on: [push]
on:
push:
branches:
- master

env:
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Pull Request
on: [pull_request]
on:
pull_request:
branches:
- master

env:
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/sonatype-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Maven Release

on:
workflow_dispatch:
push:
release:
types: [ created ]

jobs:
publish:
Expand Down Expand Up @@ -46,7 +43,5 @@ jobs:
gpg-key: ${{ secrets.GPG_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

release-branch-name: "enable-auto-publish"

- name: 'Remove Snapshots Before Caching'
run: find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf

0 comments on commit b02e076

Please sign in to comment.