Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Push Notification Jar to Maven (#174)
Browse files Browse the repository at this point in the history
* Create push-notification-jar.yml

* Update push-notification-jar.yml

* Update push-notification-jar.yml

Co-authored-by: Drew Baugher <[email protected]>
  • Loading branch information
rishabh6788 and dbbaughe authored Mar 26, 2020
1 parent f9d02a1 commit fbcc3a0
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/push-notification-jar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Upload Notification Jar to Maven

on:
push:
tags:
- v*
jobs:
upload-notification-jar:
runs-on: [ubuntu-16.04]
name: Upload Notification Jar to Maven
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12'

- name: Upload Notification Jar to Maven
env:
passphrase: ${{ secrets.PASSPHRASE }}
run: |
cd ..
export JAVA12_HOME=$JAVA_HOME
aws s3 cp s3://opendistro-docs/github-actions/pgp-public-key .
aws s3 cp s3://opendistro-docs/github-actions/pgp-private-key .
gpg --import pgp-public-key
gpg --allow-secret-key-import --import pgp-private-key
mkdir /home/runner/.gradle
aws s3 cp s3://opendistro-docs/github-actions/gradle.properties /home/runner/.gradle/
cd alerting/notification
../gradlew publishShadowPublicationToSonatype-stagingRepository -Dcompiler.java=12 -Dbuild.snapshot=false -Djavax.net.ssl.trustStore=/opt/hostedtoolcache/jdk/12.0.2/x64/lib/security/cacerts

0 comments on commit fbcc3a0

Please sign in to comment.