Skip to content

Release 9.0.0 (#56) #69

Release 9.0.0 (#56)

Release 9.0.0 (#56) #69

Workflow file for this run

name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
env:
BUNDLE_PATH: vendor/bundle
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
jobs:
android:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Build
run: |
cd android
./gradlew assembleRelease --stacktrace
cd -
- name: Publish to Maven Central
env:
SONATYPE_USERNAME: ${{ secrets.MAVEN_USER }}
SONATYPE_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.MAVEN_STAGING_PROFILE_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: >-
cd android && ./gradlew
publishProductionPublicationToSonatypeRepository
--stacktrace
--max-workers 1
closeAndReleaseSonatypeStagingRepository
ios:
runs-on: macos-14-xlarge
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Coreutils
run: brew install coreutils
- name: Publish Pods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: exec pod trunk push AirshipFrameworkProxy.podspec