File tree Expand file tree Collapse file tree
posthog-android-gradle-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ The release workflow uses a GPG key to sign artifacts when publishing to Maven C
139139 - Length: 4096
140140 - Remove expiration
141141 - Upload the key to a public server after creation
142+ - List your keys - ` gpg --list-secret-keys `
143+ - Export the private key (ASCII armored) - ` gpg --export-secret-keys --armor $ID ` (Including the 'BEGIN PGP PRIVATE KEY BLOCK' and 'END PGP PRIVATE KEY BLOCK' lines)
142144
1431452 . ** Update GitHub org secrets** :
144146 - Request temporary access if needed
Original file line number Diff line number Diff line change @@ -126,6 +126,22 @@ publishing {
126126 }
127127}
128128
129+ // Fix task dependencies for signing
130+ afterEvaluate {
131+ tasks.withType<PublishToMavenRepository > {
132+ dependsOn(tasks.withType<Sign >())
133+ }
134+
135+ // Fix specific plugin marker publication dependencies
136+ tasks.findByName(" publishPluginMavenPublicationToMavenLocal" )?.dependsOn(
137+ " signPostHogAndroidPluginPluginMarkerMavenPublication"
138+ )
139+ tasks.findByName(" publishPostHogAndroidPluginPluginMarkerMavenPublicationToMavenLocal" )?.dependsOn(
140+ " signPostHogAndroidPluginPluginMarkerMavenPublication" ,
141+ " signPluginMavenPublication"
142+ )
143+ }
144+
129145dependencies {
130146 compileOnly(gradleApi())
131147 // pinned to 8.0.x so we compile against the min. supported version.
You can’t perform that action at this time.
0 commit comments