-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (46 loc) · 1.47 KB
/
build_app.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
name: Build App
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Set Xcode version
uses: ./.github/actions/set-xcode-version
- name: Bump bundle version
run: ./.github/scripts/bump_version.sh
- name: Install gpg
run: brew install gnupg
- name: Install sourcery
run: brew install sourcery
- name: Setup provisioning profile
env:
CERTIFICATE_GPG_KEY: ${{ secrets.CERTIFICATE_GPG_KEY }}
run: ./.github/scripts/decrypt_secrets.sh
- name: Create secrets xcconfig
env:
OCTO_CLIENT_ID: ${{ secrets.OCTO_CLIENT_ID }}
OCTO_CLIENT_SECRET: ${{ secrets.OCTO_CLIENT_SECRET }}
run: |
echo "GITHUB_CLIENT_ID = \"${OCTO_CLIENT_ID}\"" >> Hadge/Secrets.xcconfig
echo "GITHUB_CLIENT_SECRET = \"${OCTO_CLIENT_SECRET}\"" >> Hadge/Secrets.xcconfig
- name: Build project
run: ./.github/scripts/build_app.sh
- name: Exporting .ipa
run: ./.github/scripts/export_ipa.sh
- name: Save .ipa as artifact
uses: actions/upload-artifact@v1
with:
name: Hadge.ipa
path: ./build/Hadge.ipa
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'