-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 887 Bytes
/
ios.yaml
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
on:
pull_request:
paths:
- "ios/**"
- ".github/workflows/ios.yaml"
branches:
- "main"
name: iOS
jobs:
build:
name: Synchronize libraries
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Add secret key to runner
run: |
mkdir -p ~/.ssh
echo "$SLOTH_IOS_KEY" > ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
- name: Checkout remote
run: |
git clone [email protected]:lambdapioneer/sloth-ios.git target
cd target
- name: Replace contents
run: |
cd target
cp -rv ../ios/RainbowSloth/* .
git add .
- name: Pushy to remote
run: |
git diff-index --quiet HEAD || git commit -m "Automatic publish from github.com/project"
git push target main