From 32fa98e4610bf71881efc86d5478aa9dff013e81 Mon Sep 17 00:00:00 2001 From: Maxython Date: Thu, 12 Jan 2023 09:04:09 +0300 Subject: [PATCH] update packages.yml --- .github/workflows/packages.yml | 4 ++-- update-pkg.sh | 39 ---------------------------------- 2 files changed, 2 insertions(+), 41 deletions(-) delete mode 100755 update-pkg.sh diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 4d4f41356d..041d5efe16 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -252,8 +252,8 @@ jobs: source ./aws-cli-action/func.sh sfuf() { gpg --batch --pinentry-mode=loopback --passphrase '${{ secrets.PW_GPG_BOT }}' --detach-sign --use-agent -u '${{ secrets.KEY_GPG_BOT }}' --no-armor "$1" - for upl_file in "$1" "$1.sig"; do - aws s3 cp $upl_file s3://termux-pacman.us/${repo#*-}/${file_sp[1]}/$upl_file + for format_file in "" ".sig"; do + aws s3 cp "${1}${format_file}" s3://'${{ secrets.SFPU }}'/${repo#*-}/${file_sp[1]}/"${1##*/}${format_file}" done } for archive in pkgs-*/pkgs-{aarch64,arm,i686,x86_64}-${{ github.sha }}.tar; do diff --git a/update-pkg.sh b/update-pkg.sh deleted file mode 100755 index b8d571558e..0000000000 --- a/update-pkg.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/bash - -info() { - echo -e "\033[1;36m\n==> $1\033[0m" -} - -commet() { - echo -e "\033[0;32m-> $1\033[0m" -} - -list_pkg() { - local list - for i in $(git status -s packages | awk '{print $2}'); do - local dir_sp=(${i//// }) - if [[ ! $(echo "$list" | grep "/${dir_sp[1]} ") ]]; then - list+="packages/${dir_sp[1]} " - fi - done - echo $list -} - -# Set repo for auto push -read -p "Username: " username -read -sp "Key: " key -echo -git remote set-url origin "https://${username}:${key}@github.com/Maxython/termux-packages-pacman.git" - -# Sort file -info "Sort and push packages." -for i in $(list_pkg); do - commet "${i}" - git add $i - git commit -m "${i}" - git push origin master -done - -git remote set-url origin "https://github.com/Maxython/termux-packages-pacman.git" - -info "Done."