Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .github/workflows/publish_android_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- name: set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'zulu'
- name: Grant execute permission for publishing script
run: chmod +x ./scripts/publish-android.sh
- name: Run publish script
env:
ANDROID_CENTRAL_USERNAME: ${{ secrets.ANDROID_CENTRAL_USERNAME }}
ANDROID_CENTRAL_PASSWORD: ${{ secrets.ANDROID_CENTRAL_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: ./scripts/publish-android.sh
- uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.ref_name }} # explicitly set ref to include commit from `semantic-release`
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- name: set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'zulu'
- name: Grant execute permission for publishing script
run: chmod +x ./scripts/publish-android.sh
- name: Run publish script
env:
ANDROID_CENTRAL_USERNAME: ${{ secrets.ANDROID_CENTRAL_USERNAME }}
ANDROID_CENTRAL_PASSWORD: ${{ secrets.ANDROID_CENTRAL_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: ./scripts/publish-android.sh
3 changes: 2 additions & 1 deletion .github/workflows/publish_ios_cocoapods_trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: github.ref == 'refs/heads/main'
timeout-minutes: 30
steps:
- run: sudo xcode-select --switch /Applications/Xcode_16.app
- run: sudo xcode-select --switch /Applications/Xcode_26.0.app
- run: xcrun simctl list > /dev/null
- run: xcodebuild -downloadPlatform iOS
- uses: actions/setup-node@v6
Expand All @@ -24,6 +24,7 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.ref_name }} # explicitly set ref to include commit from `semantic-release`
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- name: Install Cocoapods
run: |
Expand Down
3 changes: 2 additions & 1 deletion scripts/android/publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ ext["centralTokenUsername"] = ''
ext["centralTokenPassword"] = ''
ext["sonatypeStagingProfileId"] = ''

File globalSecretPropsFile = file('../../scripts/android/local.properties')
File globalSecretPropsFile = file('../scripts/android/local.properties')
File secretPropsFile = project.rootProject.file('local.properties')
if (globalSecretPropsFile.exists()) {
println "Reading globalSecretPropsFile"
// Read global local.properties file first if it exists (scripts/android/local.properties)
Properties p = new Properties()
new FileInputStream(globalSecretPropsFile).withCloseable { is -> p.load(is) }
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ publish_plugin_ios () {
fi

# check if version already exists in Trunk
if pod trunk info "$POD_NAME" 2>/dev/null | grep -q " - $PLUGIN_VERSION"; then
if pod trunk info "$POD_NAME" 2>/dev/null | grep -q " - $PLUGIN_VERSION ("; then
printf %"s\n\n" "Duplicate: a published plugin $PLUGIN_NAME exists for version $PLUGIN_VERSION, skipping..."
return
fi
Expand Down