This repository was archived by the owner on Mar 31, 2021. It is now read-only.
File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload sql-jdbc Jar to Maven
2
+
3
+ # This workflow will upload the sql-jdbc jar to maven when a new tag is cut
4
+ on :
5
+ push :
6
+ tags :
7
+ - v*
8
+
9
+ jobs :
10
+ upload-jdbc-jar :
11
+ runs-on : [ubuntu-16.04]
12
+ name : Upload Jar to Maven
13
+ steps :
14
+ - name : Checkout Repo
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Configure AWS CLI
18
+ uses : aws-actions/configure-aws-credentials@v1
19
+ with :
20
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
21
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22
+ aws-region : us-east-1
23
+
24
+ # Since release workflow uses java 10
25
+ - name : Setup Java
26
+ uses : actions/setup-java@v1
27
+ with :
28
+ java-version : ' 10'
29
+
30
+ - name : Upload jdbc Jar to Maven
31
+ env :
32
+ passphrase : ${{ secrets.PASSPHRASE }}
33
+ run : |
34
+ cd ..
35
+ export JAVA10_HOME=$JAVA_HOME
36
+ aws s3 cp s3://opendistro-docs/github-actions/pgp-public-key .
37
+ aws s3 cp s3://opendistro-docs/github-actions/pgp-private-key .
38
+
39
+ gpg --import pgp-public-key
40
+ gpg --allow-secret-key-import --import pgp-private-key
41
+
42
+
43
+ mkdir /home/runner/.gradle
44
+ aws s3 cp s3://opendistro-docs/github-actions/gradle.properties /home/runner/.gradle/
45
+ cd sql-jdbc
46
+ ./gradlew publishShadowPublicationToSonatype-stagingRepository -Dcompiler.java=10 -Dbuild.snapshot=false -Djavax.net.ssl.trustStore=$JAVA_HOME/lib/security/cacerts
You can’t perform that action at this time.
0 commit comments