Skip to content

Ant-OSS-Utility-Set/website-build-upload-oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

website-build-upload-oss

把Git文档编译成静态HTML文件并上传到oss存储

Usage

See action.yml

用例:

steps:
  name: deploy to cloud oss

on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: Ant-OSS-Utility-Set/website-build-upload-oss@main
        with:
          access_key: your oss access key
          access_secret:  your oss access secret
          endpoint: http://oss.aliyuncs.com
          bucket: oss://your_bucket
          build_script_path: scripts/build-site.sh

参数

  • endpoint:填写 Bucket 所在地域的域名信息,可参考访问域名和数据中心。
  • access_key: oss的访问key。
  • access_secret:oss的访问secret
  • bucket:oss的bucket名称
  • build_script_path:非必填,构建静态HTML的脚本命令路径,默认命令:hugo

License

The scripts and documentation in this project are released under the MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published