From 8d1af170596ab529158028591c035c4a41e52109 Mon Sep 17 00:00:00 2001 From: Marcho <41415464+marchocode@users.noreply.github.com> Date: Mon, 20 Feb 2023 08:48:42 +0000 Subject: [PATCH] :sparkles: upload qiniu auto --- .github/workflows/upload.yml | 8 ++++---- README.md | 20 +------------------- fetch/tsinghua.py | 1 - install.sh | 7 +++++++ upload.sh | 15 +++++++++++++++ 5 files changed, 27 insertions(+), 24 deletions(-) delete mode 100644 fetch/tsinghua.py create mode 100755 install.sh create mode 100755 upload.sh diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index d833191..842d507 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -1,7 +1,7 @@ name: upload on: push: - branches: [ master ] + branches: [master] jobs: upload-to-qiniu: runs-on: ubuntu-latest @@ -17,7 +17,7 @@ jobs: tar -xf qshell-v2.9.2-linux-amd64.tar.gz && \ chmod +x qshell && \ mv qshell /usr/local/bin/ && \ - qshell account ${QI_NIU_AK} ${QI_NIU_SK} github && \ - qshell account + qshell account ${QI_NIU_AK} ${QI_NIU_SK} github - name: Upload - run: ./upload.sh + run: | + chmod +x upload.sh && ./upload.sh diff --git a/README.md b/README.md index cad22ef..6bdac28 100644 --- a/README.md +++ b/README.md @@ -16,23 +16,7 @@ ### :star: 快速开始 ```bash - -# option 1 -git clone https://github.com/marchocode/tiny-shell.git - -cd tiny-shell - -./tiny-shell.sh - -# option 2 -# download latest release -wget -O tiny-shell.tar https://github.com/marchocode/tiny-shell/releases/latest/download/tiny-shell.tar - -mkdir -p tiny-shell && tar -xf tiny-shell.tar -C tiny-shell - -cd tiny-shell - -./tiny-shell.sh +curl -s https://tiny-shell.chaobei.xyz/install.sh | bash ``` @@ -56,8 +40,6 @@ cd tiny-shell | Debain | 11 (bullseye) 稳定版本 | :heavy_check_mark: | :heavy_check_mark: | | | 10 (buster) 旧的稳定 | :heavy_check_mark: | :heavy_check_mark: | | | 9 (stretch) 更旧的稳定 | :heavy_check_mark: | :heavy_check_mark: | -| | 8 (jessie`expired`)已存档 | :warning: | :x: | -| | 7 (wheezy `expired`) 已淘汰 | :warning: | :x: | | Ubuntu | 22.04 LTS (Jammy Jellyfish) | :heavy_check_mark: | :heavy_check_mark: | | | 20.04 LTS (Focal Fossa) | :heavy_check_mark: | :heavy_check_mark: | | | 18.04.4 LTS (Bionic Beaver) | :heavy_check_mark: | :heavy_check_mark: | diff --git a/fetch/tsinghua.py b/fetch/tsinghua.py deleted file mode 100644 index 0052b60..0000000 --- a/fetch/tsinghua.py +++ /dev/null @@ -1 +0,0 @@ -import request \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..aa53a61 --- /dev/null +++ b/install.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +curl -s -o tiny-shell.sh https://tiny-shell.chaobei.xyz/tiny-shell.sh + +chmod +x tiny-shell.sh + +./tiny-shell.sh \ No newline at end of file diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..0be1170 --- /dev/null +++ b/upload.sh @@ -0,0 +1,15 @@ + +# check qshell +qshell -v + +if [[ $? != 0 ]];then + echo "install qshell" +fi + +qshell qupload2 --bucket tiny-shell \ + --overwrite true \ + --src-dir $(pwd) \ + --skip-file-prefixes "upload" \ + --skip-path-prefixes ".tiny-shell/,doc/,icons/" \ + --skip-fixed-strings ".git,.gitignore" + \ No newline at end of file