Update buildapp.yml to upload Artifact
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
# Original idea by @ISnackable. Thanks to him for handling the hardest parts!
|
||||||
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
# https://github.com/ISnackable/CercubePlus/blob/main/.github/workflows/Build.yml
|
||||||
|
|
||||||
name: Build and Release uYouPlus
|
name: Build uYouPlus Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -32,9 +32,6 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set Env
|
|
||||||
run: echo "workspace=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +57,7 @@ jobs:
|
|||||||
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
mv $TMP/sdks-main/*.sdk $THEOS/sdks
|
||||||
rm -r main.zip $TMP
|
rm -r main.zip $TMP
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Setup Theos Jailed
|
- name: Setup Theos Jailed
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -74,7 +71,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./theos-jailed/install
|
./theos-jailed/install
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
|
||||||
- name: Download Dylibs
|
- name: Download Dylibs
|
||||||
run: |
|
run: |
|
||||||
@@ -87,42 +84,30 @@ jobs:
|
|||||||
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
cp -R ./main/Extensions/*.appex ./main/tmp/Payload/YouTube.app/PlugIns
|
||||||
|
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
YOUTUBE_URL: ${{ github.event.inputs.decrypted_youtube_url }}
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
|
||||||
|
|
||||||
- name: Fix compiling && Build Package
|
- name: Fix compiling && Build Package
|
||||||
id: build_package
|
id: build_package
|
||||||
run: |
|
run: |
|
||||||
cd ${{ env.workspace }}/main
|
cd ${{ github.workspace }}/main
|
||||||
(cd ${{ env.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
(cd ${{ github.workspace }}/main/Tweaks/YouPiP && sed -i '' "14s#.*#YouPiP_FRAMEWORKS = AVKit AVFoundation UIKit#g" ./Makefile)
|
||||||
make package FINALPACKAGE=1
|
make package FINALPACKAGE=1
|
||||||
|
(mv "packages/$(ls -t packages | head -n1)" "packages/uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa")
|
||||||
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
echo "::set-output name=package::$(ls -t packages | head -n1)"
|
||||||
env:
|
env:
|
||||||
THEOS: ${{ env.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload Artifact
|
||||||
id: create_release
|
uses: actions/upload-artifact@v3
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}
|
||||||
release_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }})
|
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
draft: true
|
if-no-files-found: error
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload Release Asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
UYOU_VERSION: ${{ github.event.inputs.uyou_version }}
|
|
||||||
YOUTUBE_VERSION: ${{ github.event.inputs.youtube_version }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ${{ env.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
|
||||||
asset_name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa
|
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
|
||||||
|
|||||||
Reference in New Issue
Block a user