Skip to content

Commit 2c9effe

Browse files
committed
release yml
1 parent eeeefd3 commit 2c9effe

2 files changed

Lines changed: 34 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ on:
33
types:
44
- published
55

6+
env:
7+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
8+
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
9+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
10+
KEYCHAIN_TOKEN: ${{ secrets.KEYCHAIN_TOKEN }}
11+
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
12+
APPSTORE_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
13+
614
name: Release build & deploy
715
jobs:
816
deploy-android:
@@ -54,49 +62,58 @@ jobs:
5462

5563
deploy-ios:
5664
name: iOS app
57-
runs-on: macos-11
65+
runs-on: macos-latest
5866
steps:
59-
- uses: actions/setup-node@v1
67+
- name: Setup xcode
68+
uses: maxim-lobanov/setup-xcode@v1
69+
with:
70+
xcode-version: latest-stable
71+
72+
- name: Checkout
73+
uses: actions/checkout@v4
74+
75+
- name: Setup nodejs
76+
uses: actions/setup-node@v3
6077
with:
6178
node-version: "14.x"
62-
- uses: actions/checkout@v1
79+
6380
- name: Setup key
6481
uses: webfactory/ssh-agent@v0.4.1
6582
with:
6683
ssh-private-key: ${{ secrets.SSH_CERTS }}
84+
6785
- name: Add to host
6886
run: ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
87+
6988
- name: Generate firebase config files
7089
run: |
7190
echo '${{ secrets.FB_CONFIG_IOS_DEPLOY }}' > ios/release/GoogleService-Info.plist
7291
echo '${{ secrets.FB_CONFIG_WEB_BETA }}' > src/config/firebase-web-beta.ts
7392
echo '${{ secrets.FB_CONFIG_WEB_DEPLOY }}' > src/config/firebase-web-release.ts
93+
7494
- name: Generate p8 File
7595
run: |
7696
echo '${{ secrets.APPSTORE_CONNECT_FILE_KEY }}' > ios/AuthKey.p8
97+
7798
- name: Dependencies install
7899
run: cd ios && bundle install
100+
79101
- name: Cache node modules
80-
uses: actions/cache@v1
102+
uses: actions/cache@v2
81103
id: cache
82104
with:
83105
path: node_modules
84-
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
106+
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock', 'package.json') }}
107+
85108
- name: Yarn install
109+
if: steps.cache.outputs.cache-hit != 'true'
86110
run: yarn
111+
87112
- name: Cocoapods install
88113
run: cd ios && pod install
114+
89115
- name: Generate fonts and icons
90116
run: yarn run generate-icons
117+
91118
- name: Run fastlane deploy
92-
run: xcversion select 13.0 && cd ios/fastlane && bundle exec fastlane deploy
93-
env:
94-
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
95-
# FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
96-
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
97-
# DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS: " "
98-
# FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }}
99-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
100-
KEYCHAIN_TOKEN: ${{ secrets.KEYCHAIN_TOKEN }}
101-
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
102-
APPSTORE_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
119+
run: cd ios/fastlane && bundle exec fastlane deploy

ios/fastlane/metadata/en-US/release_notes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Team's log. Stardate 2206.16:
1+
Team's log.
22

33
Bug fixing
44

0 commit comments

Comments
 (0)