Skip to content

Commit

Permalink
chore(android): revert mavencentral publishing and CI (#4961) (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpoole authored Aug 31, 2021
1 parent ab960a8 commit a2b2c78
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 185 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,29 +205,28 @@ jobs:
pod trunk push ./ios/Capacitor.podspec --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
publish-android:
runs-on: ubuntu-latest
needs:
- deploy-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x ./android/gradlew
- name: Grant execute permission for publishing script
run: chmod +x ./scripts/publish-android.sh
- name: Run publish script
working-directory: ./scripts
env:
ANDROID_OSSRH_USERNAME: ${{ secrets.ANDROID_OSSRH_USERNAME }}
ANDROID_OSSRH_PASSWORD: ${{ secrets.ANDROID_OSSRH_PASSWORD }}
ANDROID_SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }}
ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }}
ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
run: ./publish-android.sh

# publish-android:
# runs-on: ubuntu-latest
# needs:
# - deploy-latest
# steps:
# - uses: actions/checkout@v2
# - name: set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# - name: Grant execute permission for gradlew
# run: chmod +x ./android/gradlew
# - name: Grant execute permission for publishing script
# run: chmod +x ./scripts/publish-android.sh
# - name: Run publish script
# working-directory: ./scripts
# env:
# ANDROID_OSSRH_USERNAME: ${{ secrets.ANDROID_OSSRH_USERNAME }}
# ANDROID_OSSRH_PASSWORD: ${{ secrets.ANDROID_OSSRH_PASSWORD }}
# ANDROID_SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }}
# ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
# ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }}
# ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
# run: ./publish-android.sh
7 changes: 0 additions & 7 deletions android/capacitor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,15 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
}
}

tasks.withType(Javadoc).all { enabled = false }

apply plugin: 'com.android.library'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: file('../scripts/publish-root.gradle')
apply from: file('../scripts/publish-module.gradle')

android {
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
Expand Down
77 changes: 0 additions & 77 deletions android/scripts/publish-module.gradle

This file was deleted.

37 changes: 0 additions & 37 deletions android/scripts/publish-root.gradle

This file was deleted.

1 change: 0 additions & 1 deletion scripts/.gitignore

This file was deleted.

37 changes: 0 additions & 37 deletions scripts/publish-android.sh

This file was deleted.

0 comments on commit a2b2c78

Please sign in to comment.