Skip to content

Commit

Permalink
✨ upload qiniu auto
Browse files Browse the repository at this point in the history
  • Loading branch information
marchocode committed Feb 20, 2023
1 parent fd66eb5 commit 8d1af17
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: upload
on:
push:
branches: [ master ]
branches: [master]
jobs:
upload-to-qiniu:
runs-on: ubuntu-latest
Expand All @@ -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
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand All @@ -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: |
Expand Down
1 change: 0 additions & 1 deletion fetch/tsinghua.py

This file was deleted.

7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions upload.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 8d1af17

Please sign in to comment.