Skip to content

Commit

Permalink
refactor: merge workflow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Nov 9, 2024
1 parent 82e3c07 commit 0b929c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 150 deletions.
142 changes: 0 additions & 142 deletions .github/workflows/build.yml

This file was deleted.

24 changes: 16 additions & 8 deletions .github/workflows/release.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release
name: Deploy
run-name: ${{ github.event.inputs.release == true && 'Release' || 'Build' }} for ${{ github.event.inputs.ipa_url }}

on:
workflow_dispatch:
Expand All @@ -8,10 +9,15 @@ on:
default: ""
required: true
type: string
release:
description: 'Release the build'
required: true
type: boolean

env:
GH_TOKEN: ${{ github.token }}


jobs:
build-tweak:
runs-on: macos-14
Expand Down Expand Up @@ -123,27 +129,28 @@ jobs:
ROOTLESS_DEB_FILE_NAME="${PACKAGE}_${VERSION}_iphoneos-arm64.deb"
echo "ROOTLESS_DEB_FILE_NAME=$ROOTLESS_DEB_FILE_NAME" >> $GITHUB_ENV
echo "APP_NAME=$NAME" >> $GITHUB_ENV
- name: Run patcher
run: |
curl -L -o patcher https://github.com/amsyarasyiq/bunny-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
chmod +x patcher
./patcher -d discord.ipa -o discord.ipa -i ./ipa-icons.zip
- name: Install cyan
run: pip install --force-reinstall https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip Pillow

- name: Inject tweak
run: |
cyan -duws -i discord.ipa -o ${{ github.workspace }}/${{ env.APP_NAME }}.ipa -f ${{ github.workspace }}/${{ env.DEB_FILE_NAME }}
- name: Run patcher
run: |
curl -L -o patcher https://github.com/amsyarasyiq/bunny-ipa-patcher/releases/download/release-pyon/patcher.mac-amd64
chmod +x patcher
./patcher -d ${{ github.workspace }}/${{ env.APP_NAME }}.ipa -o ${{ github.workspace }}/${{ env.APP_NAME }}.ipa -i ./ipa-icons.zip
- name: Upload ipa as artifact
uses: actions/upload-artifact@v4
with:
name: ipa
path: ${{ github.workspace }}/${{ env.APP_NAME }}.ipa

release-app:
if: ${{ github.event.inputs.release == true }}
runs-on: macos-14
needs: build-ipa
permissions:
Expand Down Expand Up @@ -190,6 +197,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

app-repo:
if: ${{ github.event.inputs.release == true }}
continue-on-error: true
runs-on: macos-14
needs: release-app
Expand Down

0 comments on commit 0b929c9

Please sign in to comment.