From f08ef645a77c9860f5414be568b54477bad909a8 Mon Sep 17 00:00:00 2001 From: ragebreaker <125530737+mlm-games@users.noreply.github.com> Date: Sat, 14 Dec 2024 08:54:25 +0530 Subject: [PATCH] Update PBRP-new.yml to also upload artifacts --- .github/workflows/PBRP-new.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/PBRP-new.yml b/.github/workflows/PBRP-new.yml index fe36500..fbf9d9e 100644 --- a/.github/workflows/PBRP-new.yml +++ b/.github/workflows/PBRP-new.yml @@ -220,6 +220,20 @@ jobs: fi done + - name: Upload to Release + if: github.event_name == 'workflow_dispatch' && env.UPLOAD_RELEASES == 'true' + uses: softprops/action-gh-release@v2 + with: + files: | + ${{ env.OUTPUT_DIR }}/*.img + ${{ env.OUTPUT_DIR }}/*.tar + ${{ env.OUTPUT_DIR }}/*vbmeta* + ${{ env.OUTPUT_DIR }}/ramdisk-recovery.* + name: "TWRP Recovery for ${{ env.DEVICE_NAME }} | ${{ env.BUILD_DATE }}" + tag_name: ${{ env.DEVICE_NAME }}-${{ env.COMMIT_SHORT }} + body: | + ## 📱 TWRP Recovery for ${{ env.DEVICE_NAME }} + - name: Upload to Release if: success() uses: softprops/action-gh-release@master