forked from galadril/CaptureWolf
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (72 loc) · 2.38 KB
/
osx.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: OSX
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-14
defaults:
run:
working-directory: ${{ github.workspace }}/OSX
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout files
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- name: "Setup git user"
run: |
git config user.name "GitHub Actions"
git config user.email "<>"
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: List Xcode installations
run: sudo ls -1 /Applications | grep "Xcode"
- name: Select XCode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.2.0'
- name: Create Cert folder
run: mkdir -p cert
- name: Decode signing certificate into a file
env:
CERTIFICATE_BASE64: ${{ secrets.SIGNING_CERT }}
run: echo $CERTIFICATE_BASE64 | base64 --decode > ./cert/signing-cert.cer
- name: Decode signing key into a file
env:
KEY_BASE64: ${{ secrets.SIGNING_KEY }}
run: echo $KEY_BASE64 | base64 --decode > ./cert/signing-key.p12
- name: Install dependencies
run: bundle install
- name: Bump ios version
uses: yanamura/ios-bump-version@v1
with:
version: 1.0.5
project-path: OSX
- name: Deploy app
run: bundle exec fastlane mac release --verbose
env:
SIGNING_CERT_PASSWORD: ${{ secrets.SIGNING_CERT_PASSWORD }}
SIGNING_CERT_FILE_PATH: ./cert/signing-cert.cer
SIGNING_KEY_FILE_PATH: ./cert/signing-key.p12
KEY_CHAIN_NAME: signing
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: output
path: ./OSX/release/
- name: "Show changes"
run: |
git status
# Commit all changed files back to the repository
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5