Skip to content

Commit f865e99

Browse files
add: workflow for publishing to maven central
1 parent 622ed1f commit f865e99

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
- name: Add signing password to gradle.proeprties
6464
run: echo "signing.password=${{ secrets.OSS_SIGNING_PASSWORD }}" >> gradle.properties
6565

66-
- name: create secring.gpg file
67-
run: gpg --export-secret-keys FDADDB51 -o ~/.gnupg/secring.gpg
66+
# - name: create secring.gpg file
67+
# run: gpg --export-secret-keys FDADDB51 -o ~/.gnupg/secring.gpg
6868

69-
- name: print secring.gpg file
70-
run: cat secring.gpg
69+
# - name: print secring.gpg file
70+
# run: cat secring.gpg
7171

7272
# - name: Decode and set up GPG secring file
7373
# env:
@@ -77,7 +77,19 @@ jobs:
7777

7878
- name: Add secret file loc to gradle.properties
7979
run: echo "signing.secretKeyRingFile=secring.gpg" >> gradle.properties
80-
80+
81+
- name: Configure AWS credentials
82+
uses: aws-actions/configure-aws-credentials@v4
83+
with:
84+
aws-region: "ap-south-1"
85+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
86+
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
87+
88+
- name: Download s3 secring file
89+
run: aws s3 cp s3://sirn-android-secring/secring.gpg secring.gpg
90+
91+
- name: cat secring.gpg
92+
run: cat secring.gpg
8193

8294
- name: Echo gradle.properties
8395
run: cat gradle.properties

0 commit comments

Comments
 (0)