Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy with actions #85

Merged
merged 5 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/release-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
steps:
- name: Step 1 - Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Step 2 - Import GPG key
run: |
echo "${{ secrets.GPG_PUBLIC_KEY }}" | sudo gpg --import
echo "${{ secrets.GPG_SECRET_KEY }}" | sudo gpg --import --no-tty --batch --yes
echo "${{ secrets.GPG_PUBLIC_KEY }}" | gpg --import
echo "${{ secrets.GPG_SECRET_KEY }}" | gpg --import --no-tty --batch --yes

- name: Step 3 - Set up Maven Central Repository
uses: actions/setup-java@v3
Expand Down Expand Up @@ -46,13 +48,13 @@ jobs:
BODY: ${{ github.event.pull_request.body }}
VERSION: "v${{ steps.gitversion.outputs.semVer }}"
with:
tag_name: $VERSION
release_name: $VERSION $TITLE
body: $BODY
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }} ${{ env.TITLE }}
body: ${{ env.BODY }}
draft: false
prerelease: false

- name: Step 7 - Publish package
run: |
mvn -P release -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
mvn -Dmaven.test.skip=true -P release -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
-Drevision=${{ steps.gitversion.outputs.semVer }} deploy
Loading