-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (53 loc) · 1.73 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
env:
BUNDLE_PATH: vendor/bundle
DEVELOPER_DIR: /Applications/Xcode_15.3.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 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-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