Skip to content

Commit db3fabf

Browse files
committed
Tweak publish ci to use local.properties to fix publish err
1 parent f1baeaa commit db3fabf

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/publish-android.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
permissions: write-all
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: create local.properties file for app creds
15-
env:
16-
PORTALS_KEY: ${{ secrets.portals_key }}
17-
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties
1814
- name: set up JDK 17
1915
uses: actions/setup-java@v2
2016
with:
@@ -24,6 +20,18 @@ jobs:
2420
run: chmod +x ./gradlew
2521
- name: Grant execute permission for publishing script
2622
run: chmod +x ./scripts/publish-android.sh
23+
- name: Make local props
24+
run: |
25+
cat << EOF > "local.properties"
26+
ossrhUsername=${{ secrets.ANDROID_OSSRH_USERNAME }}
27+
ossrhPassword=${{ secrets.ANDROID_OSSRH_PASSWORD }}
28+
sonatypeStagingProfileId=${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
29+
signing.keyId=${{ secrets.ANDROID_SIGNING_KEY_ID }}
30+
signing.password=${{ secrets.ANDROID_SIGNING_PASSWORD }}
31+
signing.key=${{ secrets.ANDROID_SIGNING_KEY }}
32+
portals_key=${{ secrets.portals_key }}
33+
EOF
34+
echo "local.properties file has been created successfully."
2735
- name: Assemble release and add artifact to GH Release
2836
env:
2937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)