This commit is contained in:
HalfLife 2021-09-24 20:37:43 +08:00
parent 714dd7bd03
commit fdc7489a9b
2 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@ def upload_file(tb, chat_id, file_dir):
# 上传文件夹内的文件
def upload_folder(tb, chat_id, folder_dir):
file_list = os.listdir(folder_dir)
file_list = sorted(os.listdir(folder_dir))
for file in file_list:
path = os.path.join(folder_dir, file)
if os.path.isfile(path):

View File

@ -66,7 +66,6 @@ jobs:
sed '$a\RELEASE_STORE_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i
sed '$a\RELEASE_KEY_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i
- name: Build With Gradle
continue-on-error: true
run: |
if [ ${{ env.type }} == 'release' ]; then
typeName="原包名"
@ -79,7 +78,7 @@ jobs:
sed "/def version/c def version = \"${{ env.VERSION }}\"" $GITHUB_WORKSPACE/app/build.gradle -i
echo "开始${{ env.product }}$typeName构建"
chmod +x gradlew
./gradlew assemble${{ env.product }}release --build-cache --parallel
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
echo "修改文件名"
mkdir -p ${{ github.workspace }}/apk/
for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
@ -150,7 +149,11 @@ jobs:
with:
path: apk/
- working-directory: apk/
run: mv */*.apk . ;rm -rf */
run: |
for file in `ls */*.apk`; do
mv "$file" "$(echo "$file"|sed -e 's#.*\/##g' -e "s/_/ /g" -e 's/legado/阅读/')"
done
rm -rf */
- name: Post to channel
run: |
pip install pyTelegramBotAPI