-
Notifications
You must be signed in to change notification settings - Fork 194
59 lines (50 loc) · 1.84 KB
/
deploy.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
name: Deploy to App Store
on:
push:
tags:
- '*'
jobs:
build:
name: Deploy
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install fastlane
run: |
brew install fastlane
- name: Run Tests
run: |
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
fastlane tests
- name: Set env
run: |
export version_tag=${GITHUB_REF#refs/*/}
echo "RELEASE_VERSION=`echo $version_tag | tr -d 'v'`" >> $GITHUB_ENV
echo "RELEASE_BUILD_VERSION=`git rev-list HEAD --count`" >> $GITHUB_ENV
- name: "Set Version and Build Number"
run: |
sed -i "" 's/MARKETING_VERSION = .*;/MARKETING_VERSION = $RELEASE_VERSION;/g' "law.handbook.xcodeproj/project.pbxproj"
sed -i "" 's/CURRENT_PROJECT_VERSION = .*;/CURRENT_PROJECT_VERSION = $RELEASE_BUILD_VERSION;/g' "law.handbook.xcodeproj/project.pbxproj"
echo "Set Version to" $RELEASE_VERSION
echo "Set Build Number to" $RELEASE_BUILD_VERSION
- name: Deploying
run: |
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
fastlane beta
env:
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
- name: "Sending Notification"
uses: fjogeleit/http-request-action@master
with:
url: ${{ secrets.NOTICE_URL }}