From b66002cfcc6605bd935fa275594b761ff42a2fc3 Mon Sep 17 00:00:00 2001 From: Altf4lol <86516298+Altf4lol@users.noreply.github.com> Date: Wed, 3 Jan 2024 09:31:18 +0700 Subject: [PATCH] Create tweak.yml --- .github/workflows/tweak.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/tweak.yml diff --git a/.github/workflows/tweak.yml b/.github/workflows/tweak.yml new file mode 100644 index 0000000..6208bd0 --- /dev/null +++ b/.github/workflows/tweak.yml @@ -0,0 +1,55 @@ +name: Build +on: + push: + tags: + - 'v*' +jobs: + build: + name: Build App + runs-on: macOS-latest + env: + THEOS: theos + +steps: + - name: Checkout + uses: actions/checkout@master + - name: Install Dependencies + run: brew install ldid xz + - name: Setup Theos + uses: actions/checkout@master + with: + repository: theos/theos + ref: 8771215f765e774bfefdacc6ddf0e151c2973d49 + path: theos + submodules: recursive + - name: Download SDKs + run: | + curl -LO https://github.com/SamHep0803/iOS-13-Patched-SDK/archive/master.zip + TMP=$(mktemp -d) + unzip master.zip -d $TMP + mv $TMP/iOS-13-Patched-SDK-master/*.sdk theos/sdks + rm -r master.zip $TMP + - name: Build Package + id: build_package + run: | + make package FINALPACKAGE=1 + echo "::set-output name=package::$(ls -t packages | head -n1)" + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./packages/${{ steps.build_package.outputs.package }} + asset_name: ${{ steps.build_package.outputs.package }} + asset_content_type: application/vnd.debian.binary-package