Skip to content

Commit ea3ad67

Browse files
add:workflow for maven central publish
1 parent 67960bf commit ea3ad67

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Find the location of jdk
2626
run: echo "${{ env.JAVA_HOME }}"
2727

28-
- name: List the contents of the path java
29-
run: cd /opt/hostedtoolcache/jdk/17.0.11/x64 | ls
28+
# - name: List the contents of the path java
29+
# run: cd /opt/hostedtoolcache/jdk/17.0.11/x64 | ls
3030

3131
- name: Setup Gradle
3232
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
@@ -53,15 +53,14 @@ jobs:
5353
- name: Configure AWS credentials
5454
uses: aws-actions/configure-aws-credentials@v4
5555
with:
56-
aws-region: "ap-south-1"
57-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
58-
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
56+
aws-region: ${{ secrets.AWS_REGION }}
57+
role-to-assume: ${{ secrets.AWS_ROLE }}
5958

6059
- name: Download s3 secring file
61-
run: aws s3 cp s3://sirn-android-secring/secring.gpg /home/runner/work/siren-android-inbox/siren-android-inbox/siren-sdk/secring.gpg
60+
run: aws s3 cp s3://${{ secrets.BUCKET }}/secring.gpg /home/runner/work/siren-android-inbox/siren-android-inbox/siren-sdk/secring.gpg
6261

63-
- name: cat secring.gpg
64-
run: cat /home/runner/work/siren-android-inbox/siren-android-inbox/siren-sdk/secring.gpg
62+
# - name: cat secring.gpg
63+
# run: cat /home/runner/work/siren-android-inbox/siren-android-inbox/siren-sdk/secring.gpg
6564

6665
- name: Echo gradle.properties
6766
run: cat gradle.properties

0 commit comments

Comments
 (0)