sync_feather #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |