This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push Notification Jar to Maven (#174)
* 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
1 parent
f9d02a1
commit fbcc3a0
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |