Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- '*.md'
- 'feather.json'
- '.gitignore'
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
repo:
Expand All @@ -33,10 +35,13 @@ jobs:
- name: Checkout YouMod
uses: actions/checkout@v7
with:
ref: ${{ inputs.branch || github.ref_name }}
ref: ${{ inputs.branch || github.ref }}
repository: ${{ inputs.repo || github.repository }}
path: YouMod

- name: Check feed regressions
run: python3 YouMod/Tests/check_feed_regressions.py

- name: Install dependencies
run: brew install make ldid

Expand Down Expand Up @@ -192,6 +197,10 @@ jobs:

ls -lh YouTube_YouMod.ipa

- name: Update Feather manifest
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
run: |
cd ${{ github.workspace }}
IPA_SIZE=$(stat -f%z YouTube_YouMod.ipa 2>/dev/null || stat -c%s YouTube_YouMod.ipa)
echo "IPA size: $IPA_SIZE"
python3 -c "
Expand Down Expand Up @@ -252,6 +261,7 @@ jobs:
overwrite: true

- name: Create or update release
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v3
with:
tag_name: v${{ env.YOUMOD_VERSION }}
Expand Down
Loading