From c6f0711da5a7abb94c23170d3fcff67d04d6d7bd Mon Sep 17 00:00:00 2001 From: drifty Date: Thu, 7 Aug 2025 21:38:56 +0530 Subject: [PATCH] Update inject.yml --- .github/workflows/inject.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/inject.yml b/.github/workflows/inject.yml index d21fd28..7f80ae9 100644 --- a/.github/workflows/inject.yml +++ b/.github/workflows/inject.yml @@ -34,32 +34,23 @@ jobs: - name: Add pipx to PATH run: echo "${HOME}/.local/bin" >> $GITHUB_PATH - - name: Install or update Cyan + - name: Install cyan run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip - - name: Download IPA and .cyan file + - name: Download IPA and Cyan tweak file run: | curl -L "${{ github.event.inputs.ipa_url }}" -o app.ipa curl -L "${{ github.event.inputs.cyan_url }}" -o tweak.cyan - - name: Inject tweak using Cyan + - name: Inject tweak into IPA run: cyan -i app.ipa -z tweak.cyan -o output.ipa - - name: Create draft release (if not exists) - id: create_release - uses: softprops/action-gh-release@v2 + - name: Create draft release with injected IPA + uses: ncipollo/release-action@v1 with: - tag_name: injected-ipa-${{ github.run_number }} + tag: injected-ipa-${{ github.run_number }} name: Injected IPA ${{ github.run_number }} draft: true prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - - - name: Upload output.ipa to release - uses: softprops/action-gh-release@v2 - with: - tag_name: injected-ipa-${{ github.run_number }} - files: output.ipa - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + artifacts: output.ipa + token: ${{ secrets.GH_TOKEN }}