Skip to content

Releases: fangbinwei/aliyun-oss-website-action

Release v1.4.0

18 Feb 23:48
b9cc586
Compare
Choose a tag to compare

feat: add cache-control for pdf

Release v1.3.1

27 Dec 16:48
c9ed0ec
Compare
Choose a tag to compare

fix: fix upload concurrency

Release v1.3.0

27 Apr 19:01
Compare
Choose a tag to compare

feat: 支持增量上传

incremental

开启incremental
上传文件到OSS后, 还会将文件的ContentMD5Cache-Control收集到名为.actioninfo的私有文件中. 当再次触发action的时候, 会将待上传的文件信息与.actioninfo中记录的信息比对, 信息未发生变化的文件将跳过上传步骤, 只进行增量上传. 且在上传之后, 根据.actioninfo和已上传的文件信息, 将OSS中多余的文件进行删除.

.actioninfo 记录了上一次action执行时, 所上传的文件信息. 私有, 不可公共读写.

关闭incremental 或 OSS中不存在.actioninfo文件

会执行如下步骤

  1. 清除所有OSS中已有的文件
  2. 上传新的文件到OSS中

计划未来优化这个步骤, 优化后, 先上传新的文件到OSS中, 再diff删除多余的文件.

Release v1.2.2

13 Dec 16:36
Compare
Choose a tag to compare
  • fix folder./dist的情况
  • 当上传文件存在错误的时候, exit with code 1

Release v1.2.1

14 Sep 20:13
Compare
Choose a tag to compare

fix: handler GetBucketWebsite error
set staticWebsiteConfig firstly will get 404 error, pass it.

首次设置静态页面配置的时候, 尝试获取已有静态页面配置会报404, 处理这种情况.

Release v1.2.0

30 Aug 18:07
Compare
Choose a tag to compare

feat: add config 'exclude'
fix: fix slice thread safe

exclude

如果folder下的某些文件不需要上传

    - name: exclude some files
      uses: fangbinwei/aliyun-oss-website-action@v1
      with:
        folder: dist
        exclude: |
          tmp.txt
          tmp/
          tmp2/*.txt
          tmp2/*/*.txt
      # match dist/tmp.txt
      # match dist/tmp/
      # match dist/tmp2/a.txt
      # match dist/tmp2/a/b.txt not match dist/tmp2/tmp3/b.txt

不支持**

Release v1.1.0

23 Aug 18:46
Compare
Choose a tag to compare

feature:
新增配置项

  • skipSetting: 默认false, 是否跳过设置静态页面配置

bug fix:
在设置静态页面配置的时候, 合并之前的配置.

Release v1.0.0

08 Aug 08:25
Compare
Choose a tag to compare

配置项

  • accessKeyId: 必填
  • accessKeySecret: 必填
  • endpoint: 必填
  • folder: 必填, repo打包输出的资源文件夹
  • bucket: 必填,部署网站的bucket, 用于存放网站的资源
  • cname: 默认false. 若endpoint填写自定义域名, 需设置为true
  • indexPage: 默认index.html.网站首页
  • notFoundPage: 默认404.html.网站404页面
  • htmlCacheControl: 默认no-cache
  • imageCacheControl: 默认max-age=864000
  • otherCacheControl: 默认max-age=2592000