Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS-8112: Test #4002

Draft
wants to merge 184 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
5f54f01
Update build-deploy-alpha.yml
lazutkin-andrey Jan 4, 2023
77a034f
Update build-deploy-alpha.yml
lazutkin-andrey Jan 4, 2023
cf97220
Update build-deploy-alpha.yml
lazutkin-andrey Jan 4, 2023
16dd1be
Update build-deploy-alpha.yml
lazutkin-andrey Jan 4, 2023
3b78924
Update build-deploy-alpha.yml
lazutkin-andrey Jan 10, 2023
b7067ee
Update build-deploy-alpha.yml
lazutkin-andrey Jan 10, 2023
18e01f0
Update Fastfile
lazutkin-andrey Jan 10, 2023
be182c9
Update build-deploy-alpha.yml
lazutkin-andrey Jan 10, 2023
c593ce6
Update Fastfile
lazutkin-andrey Jan 10, 2023
d0c0baa
Update build-deploy-alpha.yml
lazutkin-andrey Jan 10, 2023
d71f090
Update Fastfile
lazutkin-andrey Jan 10, 2023
ce739aa
Update Fastfile
lazutkin-andrey Jan 10, 2023
0267731
Update Fastfile
lazutkin-andrey Jan 10, 2023
6f31430
Update build-deploy-alpha.yml
lazutkin-andrey Jan 11, 2023
bdb0cab
Update build-deploy-alpha.yml
lazutkin-andrey Jan 11, 2023
0a51b89
IOS-2808 update bundles
mobile-tangem Jan 12, 2023
38b5128
Update build-deploy-alpha.yml
lazutkin-andrey Jan 12, 2023
359451e
Update build-deploy-alpha.yml
lazutkin-andrey Jan 12, 2023
2b27cde
Update build-deploy-alpha.yml
lazutkin-andrey Jan 12, 2023
353fcae
Update build-deploy-alpha.yml
lazutkin-andrey Jan 12, 2023
a56c2a2
Update build-deploy-alpha.yml
lazutkin-andrey Jan 12, 2023
e4bff73
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
2beca2b
Update Fastfile
lazutkin-andrey Jan 13, 2023
60f995a
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
93c178e
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
617eb68
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
b000d63
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
f3f783c
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
c86e19e
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
9afb4ef
Update Fastfile
lazutkin-andrey Jan 13, 2023
b66b9a3
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
a8a7f87
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
a278796
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
2c65604
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
a1eb499
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
057fe69
Update Fastfile
lazutkin-andrey Jan 13, 2023
bc42400
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
95a5f2f
Update build-deploy-alpha.yml
lazutkin-andrey Jan 13, 2023
e8885c9
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
1f4dc81
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
d8e6cba
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
d006646
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
0413593
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
15fe47f
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
271ff97
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
60336b3
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
61c199d
Update build-deploy-alpha.yml
lazutkin-andrey Jan 14, 2023
7de6931
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
33bf9b1
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
04c5db7
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
411883e
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
18e454a
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
91e4a75
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
3045cc2
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
da79762
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
94558cf
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
2cc91cd
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
3c34079
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
b92ff9f
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
51040f7
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
8d9f649
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
8e284dc
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
1f27935
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
c58158e
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
4bdfd2b
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
f6f0549
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
f41c4f6
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
9e6fd82
Update build-deploy-alpha.yml
lazutkin-andrey Jan 15, 2023
c572d07
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
a99548d
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
5506e74
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
fb37407
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
12cc7b4
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
832b931
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
78f42f8
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
cba61c5
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
459c933
Update build-deploy-alpha.yml
lazutkin-andrey Jan 17, 2023
86a7ef9
Update build-deploy-alpha.yml
lazutkin-andrey Jan 19, 2023
e413d17
Update build-deploy-alpha.yml
lazutkin-andrey Jan 19, 2023
79f4ac1
Update build-deploy-alpha.yml
lazutkin-andrey Jan 19, 2023
60a8568
Update build-deploy-alpha.yml
lazutkin-andrey Jan 19, 2023
4fc527b
Update Fastfile
lazutkin-andrey Jan 19, 2023
d87ca90
Update build-deploy-alpha.yml
lazutkin-andrey Jan 19, 2023
8a8ecbf
IOS-2808 add beta yml
lazutkin-andrey Feb 18, 2023
f7d6576
Update build-deploy-beta.yml
lazutkin-andrey Feb 18, 2023
cb22781
IOS-2808
lazutkin-andrey Feb 18, 2023
489626e
IOS-2808 Update tests
lazutkin-andrey Feb 19, 2023
4015272
Update tests.yml
lazutkin-andrey Feb 19, 2023
416a2a2
Update build-deploy-beta.yml
lazutkin-andrey Feb 21, 2023
9be2fde
IOS-2808 Test
lazutkin-andrey Jun 8, 2023
6ad011e
Merge branch 'develop' into IOS-2808-Create-iOS-CI/CD
lazutkin-andrey Jun 8, 2023
385db1d
Update build-deploy-beta.yml
lazutkin-andrey Jun 8, 2023
86e1826
Update build-deploy-beta.yml
lazutkin-andrey Jun 8, 2023
21c5cae
Update build-deploy-alpha.yml
lazutkin-andrey Jul 12, 2023
049f7ad
Update build-deploy-alpha.yml
lazutkin-andrey Jul 12, 2023
78931e9
Update build-deploy-alpha.yml
lazutkin-andrey Aug 14, 2023
fd42218
Update Fastfile
lazutkin-andrey Aug 14, 2023
ddcaa4f
Update Fastfile
lazutkin-andrey Aug 15, 2023
8d3a433
Update build-deploy-alpha.yml
lazutkin-andrey Aug 15, 2023
68b2a4a
Update build-deploy-alpha.yml
lazutkin-andrey Aug 15, 2023
6586d64
update bundler
lazutkin-andrey Aug 15, 2023
3776632
Update build-deploy-alpha.yml
lazutkin-andrey Aug 15, 2023
5f49a30
Update build-deploy-alpha.yml
lazutkin-andrey Aug 15, 2023
55dc6e6
Update build-deploy-alpha.yml
lazutkin-andrey Aug 15, 2023
a1ffc14
Update Appfile
lazutkin-andrey Aug 15, 2023
dd13a7c
Update Fastfile
lazutkin-andrey Aug 15, 2023
bed7e00
Update Appfile
lazutkin-andrey Aug 15, 2023
b807aef
Update Fastfile
lazutkin-andrey Aug 15, 2023
e227bdb
Update Fastfile
lazutkin-andrey Aug 15, 2023
9863a5b
Update Fastfile
lazutkin-andrey Aug 15, 2023
417a209
Update Fastfile
lazutkin-andrey Aug 15, 2023
4ec6704
Update Pluginfile
lazutkin-andrey Aug 15, 2023
ed6ca5c
Update Fastfile
lazutkin-andrey Aug 15, 2023
51c4d3b
Update build-deploy-beta.yml
lazutkin-andrey Aug 15, 2023
09d9ff9
Update build-deploy-beta.yml
lazutkin-andrey Aug 15, 2023
8b12b31
Update Appfile
lazutkin-andrey Aug 15, 2023
bf1cf5b
Add files via upload
lazutkin-andrey Aug 17, 2023
f1b9930
Update create-release-branch.yml
lazutkin-andrey Aug 25, 2023
5e70235
Update build-deploy-beta.yml
lazutkin-andrey Aug 25, 2023
3cda112
Update build-deploy-beta.yml
lazutkin-andrey Aug 25, 2023
c55813b
Update Fastfile
lazutkin-andrey Aug 25, 2023
758c7ea
Update Fastfile
lazutkin-andrey Aug 25, 2023
d32d800
Update and rename create-release-branch.yml to create-release.yml
lazutkin-andrey Aug 27, 2023
0fa10af
Update create-release.yml
lazutkin-andrey Aug 27, 2023
a3e49bd
Update build-deploy-beta.yml
lazutkin-andrey Aug 27, 2023
1dc895c
Update build-deploy-alpha.yml
lazutkin-andrey Aug 27, 2023
f2a60e1
Update create-release.yml
lazutkin-andrey Aug 27, 2023
c6fbf10
Update build-deploy-alpha.yml
lazutkin-andrey Aug 27, 2023
54a017f
Update build-deploy-beta.yml
lazutkin-andrey Aug 27, 2023
c1a8ac8
Update create-release.yml
lazutkin-andrey Aug 27, 2023
a3f7d4d
Update Fastfile
lazutkin-andrey Aug 27, 2023
0bd6691
Update Fastfile
lazutkin-andrey Aug 27, 2023
fcb3a81
Update Appfile
lazutkin-andrey Aug 27, 2023
227c0e8
Update build-deploy-alpha.yml
lazutkin-andrey Aug 29, 2023
b048975
Update build-deploy-beta.yml
lazutkin-andrey Aug 29, 2023
ff86844
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
af9a4ac
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
92503aa
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
49f0a86
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
5eed9a8
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
fa3f385
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
8b4c628
Update build-deploy-beta.yml
lazutkin-andrey Aug 31, 2023
0165384
Merge branch 'develop' into IOS-2808-Create-iOS-CI/CD
lazutkin-andrey Nov 24, 2023
5fc7fa8
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
9f62998
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
4f45f5c
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
e6fb9f1
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
2e8b582
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
38c44d2
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
00b4d20
Update build-deploy-beta.yml
lazutkin-andrey Nov 29, 2023
330e347
Update Fastfile
lazutkin-andrey Nov 29, 2023
25e7196
Update create-release.yml
lazutkin-andrey Dec 14, 2023
fac4447
Update create-release.yml
lazutkin-andrey Feb 8, 2024
af7a4f6
Update create-release.yml
lazutkin-andrey Feb 8, 2024
6cf1ea5
Update create-release.yml
lazutkin-andrey Feb 9, 2024
e65affa
Update create-release.yml
lazutkin-andrey Feb 12, 2024
72fa58e
Update create-release.yml
lazutkin-andrey Feb 12, 2024
a45ecad
Merge branch 'develop' into IOS-2808-Create-iOS-CI/CD
m3g0byt3 Oct 3, 2024
c5d2500
IOS-2808: Exclude ruby gems root from version control
m3g0byt3 Oct 3, 2024
9c4c3ef
IOS-8112: Temp disable some actions
m3g0byt3 Oct 3, 2024
7e2b904
IOS-8112: Find sec identities
m3g0byt3 Oct 3, 2024
7498816
IOS-8112: Start on push (test only)
m3g0byt3 Oct 3, 2024
0c37a05
IOS-8112: Add concurrency settings
m3g0byt3 Oct 3, 2024
2f9fd83
IOS-8112: Update TODOs
m3g0byt3 Oct 3, 2024
544d0a3
IOS-8112: Fix concurrency settings
m3g0byt3 Oct 3, 2024
299842e
IOS-8112: Test
m3g0byt3 Oct 3, 2024
1c2f30f
IOS-8112: Prettify yaml
m3g0byt3 Oct 3, 2024
64c157c
IOS-8112: Global concurrency settings for the entire workflow
m3g0byt3 Oct 3, 2024
e0e9d7f
IOS-8112: Fix concurrency
m3g0byt3 Oct 3, 2024
3247f35
IOS-8112: More debugs
m3g0byt3 Oct 3, 2024
9d633e8
IOS-8112: More debugs
m3g0byt3 Oct 3, 2024
35a814c
IOS-8112: Fix conc group
m3g0byt3 Oct 3, 2024
882192b
IOS-8112: An attempt to update prov profiles
m3g0byt3 Oct 3, 2024
d106793
IOS-8112: Disable mv
m3g0byt3 Oct 3, 2024
3c8da43
IOS-8112: Disable allowProvisioningUpdates
m3g0byt3 Oct 17, 2024
03ed0ea
IOS-8112: Enable back all subjobs
m3g0byt3 Oct 17, 2024
3b2c62e
IOS-8112: Enable some subjobs
m3g0byt3 Oct 17, 2024
6504a59
IOS-8112: Add `xcode_version_override` input
m3g0byt3 Oct 17, 2024
4927232
Merge branch 'develop' into test/IOS-8112_ci_cd_alpha_builds_workflow
m3g0byt3 Oct 21, 2024
60ce0a5
IOS-8112: Fix merge issues
m3g0byt3 Oct 21, 2024
4058c74
IOS-8112: Enable `check_bsdk_example_buildable` since code signing sh…
m3g0byt3 Oct 21, 2024
328cfe6
IOS-8112: Fix Alpha workflow
m3g0byt3 Oct 21, 2024
db5f11b
IOS-8112: Fix Test workflow
m3g0byt3 Oct 21, 2024
3a41c0a
IOS-8112: Always perform tests
m3g0byt3 Oct 21, 2024
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
2 changes: 2 additions & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_PATH: "vendor/bundle"
167 changes: 114 additions & 53 deletions .github/workflows/build-deploy-alpha.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,118 @@
name: Alpha - Build and Deploy
name: Alpha - Build and Deploy

on:
push:
branches:
- test/IOS-8112_ci_cd_alpha_builds_workflow # TODO: Test only, remove
workflow_dispatch:

env:
APP_PATH: /tmp/app.ipa
ARTIFACT_NAME: Application

inputs:
xcode_version_override:
description: >
Optional Xcode version override. Leave blank (default value) to use the default Xcode version;
pass a custom value (e.g. '16.0', '10.2.1', '11 Beta 7', '11.2 GM seed', etc) to use a different Xcode version for the build
type: string

concurrency:
group: '${{ github.workflow }} (${{ github.head_ref || github.ref_name }})'
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.GH_MOBILE_PAT }}

- name: Bundle install
run: bundle install --jobs 4 --retry 3

- name: Pods install
run: bundle exec pod install

- name: TEST
run: echo ${{ github.head_ref }}

- name: Get Jira Issue Number from Branch Name
id: issue_number
uses: tangem/jira-action@master
with:
action: getBranchId
branch-name: ${{ github.head_ref }}

- name: TEST
run: echo ${{ steps.issue_number.outputs.result }}

# - name: Build
# run: bundle exec fastlane build scheme:"Tangem Alpha" version:${{ steps.issue_number.outputs.result }}

# - name: Upload binary artifact
# uses: actions/upload-artifact@v3
# with:
# name: $ARTIFACT_NAME
# path: $APP_PATH

# deploy:
# name: Deploy
# needs: build
# runs-on: self-hosted
# steps:
# - name: Download a single artifact
# uses: actions/download-artifact@v3
# with:
# name: $ARTIFACT_NAME
prepare:
name: Prepare information
runs-on: self-hosted
outputs:
version: '${{ steps.jira.outputs.key }}'
stage: Alpha
build_number: '${{ github.run_number }}'
changelog: '${{ steps.jira.outputs.summary }}'
steps:
- name: Jira Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: '${{ secrets.JIRA_URL }}'
JIRA_USER_EMAIL: '${{ secrets.JIRA_USER }}'
JIRA_API_TOKEN: '${{ secrets.JIRA_TOKEN }}'

- name: Get Jira Issue Number from Branch Name
id: jira
uses: tangem/jira-action@master
with:
action: getBranchSummary
branch-name: '${{ github.ref_name }}'

- name: Find sec identities test
run: |
echo "concurrency_group: ${{ github.workflow }} (${{ github.head_ref || github.ref_name }})"
echo "find-identity: $(security find-identity -p codesigning -v)"
echo "Provisioning Profiles: $(ls -ltra ~/Library/MobileDevice/Provisioning\ Profiles)"
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles\ Backup
# echo "Provisioning Profiles: $(ls -ltra ~/Library/MobileDevice/Provisioning\ Profiles)"
# echo "Provisioning Profiles Backup: $(ls -ltra ~/Library/MobileDevice/Provisioning\ Profiles\ Backup)"
# xcodebuild -allowProvisioningUpdates -workspace 'TangemApp.xcworkspace' -scheme 'Tangem Alpha'

build:
name: Tangem Alpha
needs: prepare
uses: tangem/actions/.github/workflows/build.yml@main
with:
stage: '${{ needs.prepare.outputs.stage }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
path: fastlane/builds/
filename: Tangem-${{ needs.prepare.outputs.stage }}-${{ needs.prepare.outputs.version }}(${{ needs.prepare.outputs.build_number }}).ipa
secrets:
GH_MOBILE_PAT: '${{ secrets.GH_MOBILE_PAT }}'

deploy:
name: Google Distribution
needs:
- prepare
- build
uses: tangem/actions/.github/workflows/deploy-firebase.yml@main
with:
stage: '${{ needs.prepare.outputs.stage }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
changelog: '${{ needs.prepare.outputs.changelog }}'
filename: Tangem-${{ needs.prepare.outputs.stage }}-${{ needs.prepare.outputs.version }}(${{ needs.prepare.outputs.build_number }}).ipa
secrets:
FIREBASE_APP_ID: '${{ secrets.FIREBASE_APP_ID }}'
FIREBASE_CLI_TOKEN: '${{ secrets.FIREBASE_CLI_TOKEN }}'
GH_MOBILE_PAT: '${{ secrets.GH_MOBILE_PAT }}'

notification:
name: Deploy Notification
needs:
- prepare
- deploy
#if: false # TODO: Temp disabled, enable
uses: tangem/actions/.github/workflows/notification.yml@main
with:
channel: '${{ vars.SLACK_CHANNEL_DEPLOYMENTS_IOS }}'
status: success
app_name: '${{ vars.APP_ALPHA }}'
deploy_to: '${{ vars.DEPLOYMENT_GOOGLE_DISTRIBUTION }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
changelog: '${{ needs.prepare.outputs.changelog }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'

error_notification:
name: Error Notification
#if: failure()
if: false # TODO: Temp disabled, enable
needs:
- prepare
- deploy
uses: tangem/actions/.github/workflows/notification.yml@main
with:
channel: '${{ vars.SLACK_CHANNEL_DEPLOYMENTS_IOS }}'
status: error
app_name: '${{ vars.APP_ALPHA }}'
deploy_to: '${{ vars.DEPLOYMENT_GOOGLE_DISTRIBUTION }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
changelog: '${{ needs.prepare.outputs.changelog }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'
112 changes: 86 additions & 26 deletions .github/workflows/build-deploy-beta.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Beta - Build and Deploy

on:
pull_request:
branches:
- develop
types:
- open

push:
branches:
- 'develop'
workflow_dispatch:

jobs:
Expand All @@ -15,48 +12,111 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: "Develop"
stage: "Beta"
build_number: ${{ github.run_number }}
changelog: ${{ steps.jira.outputs.summary }}
changelog: ${{ steps.changelog.outputs.result }}
steps:
- name: Get unreleased tasks
id: git-diff
uses: tangem/github-action@main
with:
github-token: ${{ secrets.GH_MOBILE_PAT}}
base: 'master'
head: 'develop'

- name: Jira Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: ${{ secrets.JIRA_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER }}
JIRA_API_TOKEN: ${{ secrets.JIRA_TOKEN }}
- name: Get Issues keys from git commits
id: github-issues
uses: tangem/github-action@main
JIRA_BASE_URL: ${{ secrets.JIRA_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER }}
JIRA_API_TOKEN: ${{ secrets.JIRA_TOKEN }}

- name: Jira Get Issues Summary
uses: tangem/jira-action@master
id: changelog
with:
github-token: ${{ secrets.GH_MOBILE_PAT}}
pull-number: ${{ github.event.number }}
action: getIssuesSummary
issues: ${{ steps.git-diff.outputs.issues }}

# TEST
- name: Output issues
run: echo ${{ steps.github-issues.outputs.issues }}
###

- name: Jira Check Version
id: jira-check-version
uses: tangem/jira-action@master
with:
action: checkVersion
project: IOS
version: NextRelease
version: "Next Release"

- name: Jira Create Version
if: ${{ steps.jira-check-version.outputs.result }} == false
if: ${{ steps.jira-check-version.outputs.result == 'false' }}
uses: tangem/jira-action@master
with:
action: createVersion
project: IOS
version: NextRelease
version: "Next Release"

- name: Jira Set Version To Issues
uses: tangem/jira-action@master
with:
action: setVersionToIssues
project: IOS
version: NextRelease
issues: ${{ steps.github-issues.outputs.issues }}
version: "Next Release"
issues: ${{ steps.git-diff.outputs.issues }}

build:
name: Tangem Beta
needs: prepare
uses: tangem/actions/.github/workflows/build.yml@main
with:
stage: ${{needs.prepare.outputs.stage}}
version: "${{needs.prepare.outputs.version}}"
build_number: ${{needs.prepare.outputs.build_number}}
path: "fastlane/builds/"
filename: "Tangem-${{needs.prepare.outputs.stage}}-${{needs.prepare.outputs.version}}(${{needs.prepare.outputs.build_number}}).ipa"
secrets:
GH_MOBILE_PAT: ${{ secrets.GH_MOBILE_PAT}}

deploy:
name: Google Distribution
needs: [prepare,build]
uses: tangem/actions/.github/workflows/deploy-firebase.yml@main
with:
stage: ${{needs.prepare.outputs.stage}}
version: "${{needs.prepare.outputs.version}}"
build_number: ${{needs.prepare.outputs.build_number}}
changelog: "${{needs.prepare.outputs.changelog}}"
filename: "Tangem-${{needs.prepare.outputs.stage}}-${{needs.prepare.outputs.version}}(${{needs.prepare.outputs.build_number}}).ipa"
secrets:
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID}}
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN}}
GH_MOBILE_PAT: ${{ secrets.GH_MOBILE_PAT}}

notification:
name: Deploy Notification
needs: [prepare,deploy]
uses: tangem/actions/.github/workflows/notification.yml@main
with:
channel: ${{vars.SLACK_CHANNEL_DEPLOYMENTS_IOS}}
status: "success"
app_name: ${{vars.APP_BETA}}
deploy_to: ${{vars.DEPLOYMENT_GOOGLE_DISTRIBUTION}}
version: ${{needs.prepare.outputs.version}}
build_number: ${{needs.prepare.outputs.build_number}}
changelog: ${{needs.prepare.outputs.changelog}}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN}}

error_notification:
name: Error Notification
if: failure()
needs: [prepare,deploy]
uses: tangem/actions/.github/workflows/notification.yml@main
with:
channel: ${{vars.SLACK_CHANNEL_DEPLOYMENTS_IOS}}
status: "error"
app_name: ${{vars.APP_BETA}}
deploy_to: ${{vars.DEPLOYMENT_GOOGLE_DISTRIBUTION}}
version: ${{needs.prepare.outputs.version}}
build_number: ${{needs.prepare.outputs.build_number}}
changelog: ${{needs.prepare.outputs.changelog}}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN}}
22 changes: 12 additions & 10 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ on:
jobs:
prepare:
name: Prepare Release
uses: tangem/actions/.github/workflows/build.yml@main
uses: tangem/actions/.github/workflows/prepare-release.yml@main
with:
versionName: ${{ github.event.inputs.versionName }}
versionType: ${{ github.event.inputs.versionType }}
releaseType: ${{ github.event.inputs.versionType }}s
secrets:
GH_MOBILE_PAT: ${{ secrets.GH_MOBILE_PAT}}
JIRA_BASE_URL: ${{ secrets.JIRA_URL }}
Expand All @@ -32,7 +32,7 @@ jobs:
uses: tangem/actions/.github/workflows/build.yml@main
with:
stage: ${{needs.prepare.outputs.stage}}
version: "${{ github.event.inputs.name }}"
version: "RC"
build_number: ${{needs.prepare.outputs.build_number}}
path: "fastlane/builds/"
filename: "Tangem-${{needs.prepare.outputs.stage}}-${{needs.prepare.outputs.version}}(${{needs.prepare.outputs.build_number}}).ipa"
Expand All @@ -44,14 +44,16 @@ jobs:
needs: [prepare,build]
uses: tangem/actions/.github/workflows/deploy-testflight.yml@main
with:
stage: ${{needs.prepare.outputs.stage}}
version: "${{needs.prepare.outputs.version}}"
build_number: ${{needs.prepare.outputs.build_number}}
changelog: "${{needs.prepare.outputs.changelog}}"
filename: "Tangem-${{needs.prepare.outputs.stage}}-${{needs.prepare.outputs.version}}(${{needs.prepare.outputs.build_number}}).ipa"
stage: "RC"
version: ${{ github.event.inputs.versionName }}
build_number: ${{ github.run_number }}
changelog: ""
filename: "Tangem-RC-${{ github.event.inputs.versionName }}(${{ github.run_number }}).ipa"
secrets:
FIREBASE_APP_ID: ${{ secrets.FIREBASE_IOS_ALPHA_ID}}
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN}}
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID}}
ASC_PRIVATE_KEY: ${{ secrets.ASC_PRIVATE_KEY}}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID}}
GH_MOBILE_PAT: ${{ secrets.GH_MOBILE_PAT}}

notification:
name: Deploy Notification
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
test:
name: Test
runs-on: macos-14
if: github.event.pull_request.draft == false
if: false # TODO: Temp disabled, remove
#if: github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -43,8 +44,9 @@ jobs:

check_bsdk_example_buildable:
name: Check BSDK example project
runs-on: macos-14
if: false # TODO: Andrey Fedorov - Requires code signing, enable after migration to self-hosted runners (IOS-8112)
runs-on: self-hosted
if: true # TODO: Temp enabled, remove
#if: github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ fastlane/report.xml
# Generated
Tangem/Resources/Generated/Localizable+Generated.swift
Tangem/Resources/Generated/XCAssets+Generated.swift

# Rubygems
vendor/bundle
Loading
Loading