New Rule
This commit is contained in:
Aizawa Hikaru 2021-10-30 13:56:47 +08:00
parent 01a03b7fc2
commit 0b8021f0bf

View File

@ -10,7 +10,7 @@ on:
LIBRARY_URL: LIBRARY_URL:
description: 'LIBRARY_URL' description: 'LIBRARY_URL'
required: true required: true
default: 'git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git' default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
LIBRARY_BRANCH: LIBRARY_BRANCH:
description: 'LIBRARY_BRANCH' description: 'LIBRARY_BRANCH'
required: true required: true
@ -48,8 +48,6 @@ jobs:
sudo apt -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* sudo apt -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php*
sudo apt -y autoremove --purge sudo apt -y autoremove --purge
sudo apt -y autoclean sudo apt -y autoclean
sudo apt clean
sudo apt update
sudo apt -y upgrade sudo apt -y upgrade
sudo apt -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip jq bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev imagemagick libbz2-dev libssl-dev lzma ncftp bash-completion python openjdk-8-jdk qemu-user-static sudo apt -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip jq bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev imagemagick libbz2-dev libssl-dev lzma ncftp bash-completion python openjdk-8-jdk qemu-user-static
@ -103,10 +101,8 @@ jobs:
run: | run: |
PATH=~/bin:$PATH PATH=~/bin:$PATH
cd workspace cd workspace
zip ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/OrangeFox-Unofficial-${{ github.event.inputs.DEVICE_NAME }}.zip zip ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/*.zip
zip -m ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/OrangeFox-Unofficial-${{ github.event.inputs.DEVICE_NAME }}.img
zip -m ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img zip -m ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
zip -m ./${{ github.event.inputs.DEVICE_NAME }}-Built.zip ./out/target/product/${{ github.event.inputs.DEVICE_NAME }}/SHRP_*.zip
- name: Upload to Release - name: Upload to Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1