@@ -49,23 +49,17 @@ jobs:
4949 else
5050 echo "content=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT
5151 fi
52- - name : Prepare environment
53- env :
54- SIGNING_SECRET_KEY_RING_FILE_CONTENT : ${{ secrets.SIGNING_SECRET_KEY_RING_FILE_CONTENT }}
55- SIGNING_SECRET_KEY_RING_FILE : ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
56- run : sudo bash -c "echo '$SIGNING_SECRET_KEY_RING_FILE_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
5752 - name : Release build
5853 run : ./gradlew cmplibrary:assemble
5954 - name : Source jar and dokka
6055 run : ./gradlew androidSourcesJar javadocJar
61- - name : Publish to MavenCentral
62- run : ./gradlew publishReleasePublicationToSonatypeRepository # --max-workers 1 closeAndReleaseRepository --info
56+ - run : ./gradlew publish --no-parallel --no-configuration-cache
6357 env :
64- OSSRH_TOKEN_USER : ${{ secrets.OSSRH_TOKEN_USER }}
65- OSSRH_TOKEN_PASSWORD : ${{ secrets.OSSRH_TOKEN_PASSWORD }}
66- SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
67- SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
68- SIGNING_SECRET_KEY_RING_FILE : ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
58+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
59+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
60+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
61+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
62+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
6963 - name : Add, commit and push edited files
7064 env :
7165 GIT_USERNAME : ${{ secrets.GIT_USERNAME }}
@@ -84,66 +78,66 @@ jobs:
8478 ${{ steps.release_note.outputs.content }}
8579 draft : false
8680 prerelease : false
87- release-metaapp :
88- runs-on : ubuntu-latest
89- permissions :
90- contents : write
91- steps :
92- - uses : actions/checkout@v4
93- - name : set up JDK 17
94- uses : actions/setup-java@v4
95- with :
96- distribution : zulu
97- java-version : 17
98- cache : gradle
99- - name : Bump versionCode
100- id : bump
101- run : |
102- git config user.email "andre@sourcepoint.com"
103- git config user.name "GitHub Action"
104- ./gradlew metaapp:bumpVersionCode
105- - name : creating local.properties
106- run : touch local.properties
107- - name : generating MetaApp build release
108- id : buildRelease
109- run : ./gradlew :metaapp:bundleRelease :metaapp:bundleDebug :metaapp:assembleRelease :metaapp:assembleDebug
110- - name : Sign APK
111- id : sign
112- # uses v1 tag of r0adkll/sign-android-release as of 2025-04-15
113- uses : r0adkll/sign-android-release@349ebdef58775b1e0d8099458af0816dc79b6407
114- with :
115- releaseDirectory : samples/metaapp/build/outputs/bundle/release
116- signingKeyBase64 : ${{ secrets.SIGNING_KEY }}
117- alias : ${{ secrets.SIGNING_ALIAS }}
118- keyStorePassword : ${{ secrets.KEY_STORE_PASSWORD }}
119- keyPassword : ${{ secrets.KEY_ALIAS_PASSWORD }}
120- - name : Create service_account.json
121- id : createServiceAccount
122- run : |
123- echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
124- - name : ' Publish release artifact'
125- if : always()
126- uses : actions/upload-artifact@v4
127- with :
128- name : ' release-artifact'
129- path : ${{ steps.sign.outputs.signedReleaseFile }}
130- - name : Deploy to Play Store
131- id : deploy
132- # uses v1.0.15 tag of r0adkll/upload-google-play as of 2025-04-15
133- uses : r0adkll/upload-google-play@9745ef904e395471bca5696056a6ce8a60d18cf8
134- with :
135- serviceAccountJson : service_account.json
136- packageName : com.sourcepointmeta.metaapp
137- releaseFiles : ${{ steps.sign.outputs.signedReleaseFile }}
138- track : production
139- - name : Add, commit and push edited files
140- env :
141- GIT_USERNAME : ${{ secrets.GIT_USERNAME }}
142- GIT_EMAIL : ${{ secrets.GIT_EMAIL }}
143- run : ./gradlew addCommitPush
144- - name : Publish MetaAppDebug artifact
145- if : always()
146- uses : actions/upload-artifact@v4
147- with :
148- name : MetaAppDebug
149- path : samples/metaapp/build/outputs/apk/debug/metaapp-debug.apk
81+ # release-metaapp:
82+ # runs-on: ubuntu-latest
83+ # permissions:
84+ # contents: write
85+ # steps:
86+ # - uses: actions/checkout@v4
87+ # - name: set up JDK 17
88+ # uses: actions/setup-java@v4
89+ # with:
90+ # distribution: zulu
91+ # java-version: 17
92+ # cache: gradle
93+ # - name: Bump versionCode
94+ # id: bump
95+ # run: |
96+ # git config user.email "andre@sourcepoint.com"
97+ # git config user.name "GitHub Action"
98+ # ./gradlew metaapp:bumpVersionCode
99+ # - name: creating local.properties
100+ # run: touch local.properties
101+ # - name: generating MetaApp build release
102+ # id: buildRelease
103+ # run: ./gradlew :metaapp:bundleRelease :metaapp:bundleDebug :metaapp:assembleRelease :metaapp:assembleDebug
104+ # - name: Sign APK
105+ # id: sign
106+ # # uses v1 tag of r0adkll/sign-android-release as of 2025-04-15
107+ # uses: r0adkll/sign-android-release@349ebdef58775b1e0d8099458af0816dc79b6407
108+ # with:
109+ # releaseDirectory: samples/metaapp/build/outputs/bundle/release
110+ # signingKeyBase64: ${{ secrets.SIGNING_KEY }}
111+ # alias: ${{ secrets.SIGNING_ALIAS }}
112+ # keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
113+ # keyPassword: ${{ secrets.KEY_ALIAS_PASSWORD }}
114+ # - name: Create service_account.json
115+ # id: createServiceAccount
116+ # run: |
117+ # echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
118+ # - name: 'Publish release artifact'
119+ # if: always()
120+ # uses: actions/upload-artifact@v4
121+ # with:
122+ # name: 'release-artifact'
123+ # path: ${{ steps.sign.outputs.signedReleaseFile }}
124+ # - name: Deploy to Play Store
125+ # id: deploy
126+ # # uses v1.0.15 tag of r0adkll/upload-google-play as of 2025-04-15
127+ # uses: r0adkll/upload-google-play@9745ef904e395471bca5696056a6ce8a60d18cf8
128+ # with:
129+ # serviceAccountJson: service_account.json
130+ # packageName: com.sourcepointmeta.metaapp
131+ # releaseFiles: ${{ steps.sign.outputs.signedReleaseFile }}
132+ # track: production
133+ # - name: Add, commit and push edited files
134+ # env:
135+ # GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
136+ # GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
137+ # run: ./gradlew addCommitPush
138+ # - name: Publish MetaAppDebug artifact
139+ # if: always()
140+ # uses: actions/upload-artifact@v4
141+ # with:
142+ # name: MetaAppDebug
143+ # path: samples/metaapp/build/outputs/apk/debug/metaapp-debug.apk
0 commit comments