Skip to content

Commit

Permalink
feat: update CI/CD
Browse files Browse the repository at this point in the history
- use maven wrapper in publish workflow
- skip testing in release branches
  • Loading branch information
martinalbert committed Jul 23, 2024
1 parent 71db584 commit cd3c365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/development-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches-ignore:
- master
- release-please--branches--master

jobs:
test:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
server-password: ${{ secrets.OSSRH_PWD_TOKEN }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PWD }}

- name: Build with Maven Wrapper
run: ./mvnw clean install

- name: Publish to Apache Maven Central
run: mvn deploy -P release # Using the profile `release` for using the necessary dependencies
- name: Deploy to Apache Maven
run: ./mvnw deploy -P release -Dgpg.skip=false # Using the profile `release` for using the necessary dependencies

0 comments on commit cd3c365

Please sign in to comment.