Skip to content

Repository files navigation

Uptoc

English | 🇨🇳中文

Run environment

  • Mac
  • Linux
  • Windows

Support Driver

  • Aliyun OSS
  • Tencent COS
  • Qiniu Kodo
  • Google Storage
  • AWS S3

Install the pre-compiled binary

homebrew tap:

brew install saltbo/bin/uptoc

homebrew (may not be the latest version):

brew install uptoc

deb/rpm:

Download the .deb or .rpm from the releases page and install with dpkg -i and rpm -i respectively.

Shell script:

curl -sSf https://uptoc.saltbo.cn/install.sh | sh

manually:

Download the pre-compiled binaries from the releases page and copy to the desired location.

Usage

Basic

uptoc --driver oss --region cn-beijing --access_key LTAI4FxxxxxxxBXmS3 --secret_key Vt1FZgxxxxxxxxxxxxKp380AI --bucket demo-bucket /opt/blog/public

And the access-key and access-secret support settings by the system environment

export UPTOC_UPLOADER_AK=LTAI4FxxxxxxxBXmS3
export UPTOC_UPLOADER_SK=Vt1FZgxxxxxxxxxxxxKp380AI
uptoc --driver oss --region cn-beijing --bucket blog-bucket /opt/blog/public

Github Actions

See action.yml

steps:
- name: Deployuses: saltbo/uptoc@masterwith:
driver: ossregion: cn-zhangjiakoubucket: saltbo-blogexclude: .cache,testdist: publicenv:
UPTOC_UPLOADER_AK: ${{ secrets.UPTOC_UPLOADER_KEYID }}UPTOC_UPLOADER_SK: ${{ secrets.UPTOC_UPLOADER_KEYSECRET }}

Args Examples

driverbucketregionregion enum
ossut-uptoccn-hangzhouRegions
cosut-uptoc-1255970412ap-shanghaiRegions
qiniuut-uptoccn-east-1Regions
googleut-uptocauto-
s3ut-uptocap-northeast-1Regions

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

Contact us

Author

License

About

A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages