Skip to content

Commit

Permalink
Use maven wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Jan 21, 2024
1 parent 39a2625 commit 9f93d1b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

on: workflow_dispatch
on:
push:
branches:
- main
permissions:
contents: write

Expand All @@ -18,8 +21,6 @@ jobs:
- ubuntu-latest
java:
- 11
maven:
- 3.9.6
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand All @@ -44,9 +45,9 @@ jobs:
- name: Configure GPG key
run: echo -e "${{ env.GPG_PRIVATE_KEY }}" | gpg --import --batch
- name: Build artifacts
run: mvn clean verify -B -Prelease -Dmaven.test.skip
run: ./mvnw clean verify -B -Prelease -Dmaven.test.skip
- name: Publish artifacts
run: mvn release:prepare release:perform -B -Darguments="-Prelease -Dmaven.test.skip"
run: ./mvnw release:prepare release:perform -B -Darguments="-Prelease -Dmaven.test.skip"
- name: Close release
run: |
echo "Release completed 🎉"
Expand Down

0 comments on commit 9f93d1b

Please sign in to comment.