Skip to content

Commit

Permalink
Importing gpg keys from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
josemduarte committed Mar 29, 2024
1 parent 0693e2c commit 6807e8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ jobs:
mvn --version
java --version
gpg --version
ls -altrh ~/.m2/settings.xml
ls -altrh /home/runner/.secrets/settings.xml
- name: Set new schema version
run: mvn versions:set -DnewVersion=$NEW_SCHEMA_VERSION --no-transfer-progress
- name: Commit and tag new version
run: |
git add pom.xml
git commit -m "[automatic-schema-release] Updated version in pom.xml to $NEW_SCHEMA_VERSION"
git tag v$NEW_SCHEMA_VERSION
- name: Import gpg keys for signing artifacts in maven deploy phase
run: |
gpg --import ~/.secrets/maven_signing_public.gpg
gpg --import ~/.secrets/maven_signing_private.gpg
- name: Publish to ossrh (maven central) via maven deploy
run: mvn -Prelease --batch-mode --errors -U clean deploy --no-transfer-progress
- name: Increment version for next dev cycle
Expand Down

0 comments on commit 6807e8f

Please sign in to comment.