Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-up-circle

GitHub Action

Uptoc Action

v1.3.2

Uptoc Action

arrow-up-circle

Uptoc Action

Publish your static files, support oss,cos,qiniu,aws s3,google storage

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Uptoc Action

uses: bonaysoft/uptoc@v1.3.2

Learn more about this action in bonaysoft/uptoc

Choose a version

Uptoc

English | 🇨🇳中文

Run environment

  • Mac
  • Linux
  • Windows

Support Driver

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

Install

Download the appropriate binary for your platform from the Releases page, or:

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

Usage

Basic

uptoc --driver oss --region cn-beijing --access_key LTAI4FxxxxxxxBXmS3 --access_secret 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

steps:
  - name: Deploy
    uses: saltbo/uptoc@master
    with:
      driver: oss
      region: cn-zhangjiakou
      bucket: saltbo-blog
      dist: public
    env:
      UPTOC_UPLOADER_AK: ${{ secrets.UPTOC_UPLOADER_KEYID }}
      UPTOC_UPLOADER_SK: ${{ secrets.UPTOC_UPLOADER_KEYSECRET }}

Similar Travis

after_success:
  - curl -sSf http://uptoc.saltbo.cn/install.sh | sh
  - uptoc --region cn-zhangjiakou --bucket blog-bucket public

Args Examples

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

Contact us

Author

License