-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (49 loc) · 1.66 KB
/
action_deploy_binaries.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
name: Deploy Binaries
on:
workflow_dispatch:
push:
branches:
- release-please--branches--develop--groups--Kmp-libs
tags:
- mockzilla-v**
env:
is_snapshot: ${{ github.ref_type == 'branch' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref_type }}
cancel-in-progress: false
jobs:
deploy:
environment: production
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Install dependencies
run: bundle install
- name: Deploy package to Maven Central
run: |
echo "is_snapshot: $is_snapshot"
export GPG_TTY=$(tty)
bundle exec fastlane publish_to_maven is_snapshot:$is_snapshot
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- name: Deploy package to Github for SPM & Cocoapods
run: bundle exec fastlane ios publish_swift_package is_snapshot:$is_snapshot
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
IOS_DEPLOY_URL: ${{ secrets.IOS_DEPLOY_URL }}
- uses: googleapis/release-please-action@v4
with:
if: ${{ !env.is_snapshot }}
release-type: simple
skip-github-pull-request: true