-
-
Notifications
You must be signed in to change notification settings - Fork 24
58 lines (44 loc) · 1.51 KB
/
sync_feather.yml
File metadata and controls
58 lines (44 loc) · 1.51 KB
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
name: sync_feather
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Make scripts executable
run: |
chmod +x sign_with_all_certs.sh
chmod +x generate_plist.sh
chmod +x generate_index.sh
- name: Sign IPA with all certificates
env:
CERT_ZIP_URL: https://github.com/WSF-Team/WSF/raw/refs/heads/main/portal/resources/certificates.zip
run: ./sign_with_all_certs.sh
- name: Ensure signed IPAs exist
shell: bash
run: |
shopt -s nullglob
signed_ipas=(Feather/output/feather-*.ipa)
shopt -u nullglob
if [[ ${#signed_ipas[@]} -eq 0 ]]; then
echo "No signed IPAs were found in Feather/output after running sign_with_all_certs.sh" >&2
exit 1
fi
printf '%s\n' "${signed_ipas[@]}"
- name: Generate OTA plist files
run: ./generate_plist.sh
- name: Generate index.html
run: ./generate_index.sh
- name: Commit and push generated files
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A Feather/output index.html
git commit -m "sync_feather: update signed IPAs, plists, and index" || echo "Nothing to commit"
git push