Skip to content

Release 4.0.1

Release 4.0.1 #27

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.app/Contents/Developer
jobs:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Build
run: |
cd android
./gradlew airship-framework-proxy: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-12
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- 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