diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 57e4ca0d..c8891583 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -10,14 +10,13 @@ on: # - '.config' # schedule: # - cron: 0 8 * * 5 - watch: - types: [started] + workflow_dispatch: env: - MANIFEST: https://gitlab.com/OrangeFox/Manifest.git - DEVICE: rosy - DT_LINK: https://github.com/ElytrA8/recovery_rosy - DT_PATH: device/xiaomi/rosy + MANIFEST: https://github.com/GalaxyM21-Development/platform_manifest_twrp_omni + DEVICE: m21 + DT_LINK: https://github.com/GalaxyM21-Development/android_device_samsung_m21-TWRP + DT_PATH: device/samsung/m21 TARGET: recoveryimage TZ: Asia/Kolkata @@ -35,8 +34,8 @@ jobs: sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d docker rmi `docker images -q` sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix - git config --global user.name "ElytrA8" - git config --global user.email "manofuranium@gmail.com" + git config --global user.name "Ayush" + git config --global user.email "ayush@disroot.org" sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* sudo -E apt-get clean sudo -E apt-get -qq update @@ -48,8 +47,8 @@ jobs: run: | mkdir work cd work - repo init -u $MANIFEST --depth=1 --groups=all,-notdefault,-device,-darwin,-x86,-mips - repo sync -j4 + repo init -u $MANIFEST -b twrp-10.0 --depth=1 + repo sync -c -j4 --force-sync --no-clone-bundle --no-tags git clone $DT_LINK --depth=1 --single-branch $DT_PATH - name: Build @@ -57,8 +56,12 @@ jobs: cd work . build/envsetup.sh &&lunch omni_$DEVICE-eng &&export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET - - name: Upload recovery image - run: | - cd work/out/target/product/$DEVICE - curl -sL https://git.io/file-transfer | sh - ./transfer wet *.zip + - name: Release recovery image + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: 3.4.0 + files: | + work/out/target/product/m21/recovery.img +