A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具
English | 🇨🇳中文
homebrew tap:
brew install saltbo/bin/uptoc
homebrew (may not be the latest version):
brew install uptoc
deb/rpm:
Download the
.debor
.rpmfrom the releases page and install with
dpkg -iand
rpm -irespectively.
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.
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 ```bash export UPTOCUPLOADERAK=LTAI4FxxxxxxxBXmS3 export UPTOCUPLOADERSK=Vt1FZgxxxxxxxxxxxxKp380AI
uptoc --driver oss --region cn-beijing --bucket blog-bucket /opt/blog/public ```
See action.yml
steps: - name: Deploy uses: saltbo/[email protected] with: driver: oss region: cn-zhangjiakou bucket: saltbo-blog exclude: .cache,test dist: public env: UPTOC_UPLOADER_AK: ${{ secrets.UPTOC_UPLOADER_KEYID }} UPTOC_UPLOADER_SK: ${{ secrets.UPTOC_UPLOADER_KEYSECRET }}
| driver | bucket | region | region enum | | ----- | --------- | ------ | ---- | | oss | ut-uptoc | cn-hangzhou | Regions | | cos | ut-uptoc-1255970412 | ap-shanghai | Regions | | qiniu | ut-uptoc | cn-east-1 | Regions | | google | ut-uptoc | auto | - | | s3 | ut-uptoc | ap-northeast-1 | Regions |
See CONTRIBUTING for details on submitting patches and the contribution workflow.