54 lines (52 loc) · 1.49 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
name: Deploying
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p ${{ github.workspace }}/artifact
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_11.4.app
- name: Install gpg
run: brew install gnupg
- name: Setup provisioning profile
env:
IOS_KEYS: ${{ secrets.IOS_KEYS }}
run: ./.github/secrets/decrypt_secrets.sh
- name: Archiving project
env:
PR_NUMBER: $(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
ARTIFACT_DIR: ${{ github.workspace }}/artifact
run: ./.github/workflows/archive_app.sh
- name: Exporting .ipa
env:
ARTIFACT_DIR: ${{ github.workspace }}/artifact
run: ./.github/workflows/export_ipa.sh
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: dicee-ipa
path: ${{ github.workspace }}/artifact/**/*
upload:
name: Upload to App Center
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: dicee-ipa
- name: App Center Distribute
if: success()
uses: wzieba/AppCenter-Github-Action@v1
with:
appName: <appCenterUserName>/dice-iOS13-Github
token: ${{secrets.APP_CENTER_TOKEN}}
group: Collaborators
file: Dicee-iOS13.ipa
notifyTesters: false
debug: false