Skip to content

Commit

Permalink
Update create-and-publish-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IdanAdar authored Feb 15, 2021
1 parent 90fad4c commit c9b1a17
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/create-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,18 @@ jobs:
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false
- name: Configure GPG Key
run: |
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Set up Maven Central Repository
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: ossrh
server-username: ${{ secrets.MAVEN_USERNAME }}
server-password: ${{ secrets.MAVEN_PASSWORD }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish package
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
-P central \
clean deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
java-version: 8

- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.MAVEN_USERNAME }}
nexus_password: ${{ secrets.MAVEN_PASSWORD }}
SECRETS_MANAGER_API_AUTH_TYPE: iam
SECRETS_MANAGER_API_APIKEY: ${{ secrets.SECRETS_MANAGER_API_APIKEY }}
SERVICE_URL: https://9476d663-dc80-4132-aff6-4585ebbdfb2d.us-south.secrets-manager.appdomain.cloud

0 comments on commit c9b1a17

Please sign in to comment.