From 3413ae9059ac41932774f589d4a823f5d59032ca Mon Sep 17 00:00:00 2001 From: Binwei Fang Date: Sun, 19 Feb 2023 07:44:15 +0800 Subject: [PATCH 1/2] ci: update docker ci (#16) --- .github/workflows/dockerhub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 61a9819..cfabdd4 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: tag: - default: "latest" + default: 'latest' description: dockerhub tag push: branches: @@ -36,4 +36,4 @@ jobs: with: context: . push: true - tags: fangbinwei/aliyun-oss-website-action:${{ github.event.inputs.tag}} \ No newline at end of file + tags: ${{ format('fangbinwei/aliyun-oss-website-action:{0}', github.event.inputs.tag || 'latest') }} From 0aa5c83b38896b9fb13a6bd4330f603f5200af5f Mon Sep 17 00:00:00 2001 From: Binwei Fang Date: Sun, 19 Feb 2023 08:07:20 +0800 Subject: [PATCH 2/2] docs: update readme (#17) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76b9da4..19a943f 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ deploy website on aliyun OSS(Alibaba Cloud OSS) ## 概览 - 在阿里云OSS创建一个存放网站的bucket - 准备一个域名, 可能需要备案(bucket选择非大陆区域, 可以不备案, 但是如果CDN加速区域包括大陆, 仍然需要备案) -- 在你的网站repo中, 配置github action, action 触发则增量上传网站repo生成的资源文件到bucket中 +- 在你的网站repo中, 配置github action, action 触发则**增量上传**网站repo生成的资源文件到bucket中 - 通过阿里云OSS的CDN, 可以很方便地加速网站的访问, 支持HTTPS +> 阿里云HTTPS免费证书停止自动续签, 但是可以自己[申请免费的证书](https://help.aliyun.com/document_detail/156645.htm), 具体解决方案参考[该公告](https://help.aliyun.com/document_detail/479351.html) ## Usage @@ -36,6 +37,7 @@ deploy website on aliyun OSS(Alibaba Cloud OSS) - `skipSetting`: 默认`false`, 是否跳过设置[静态页面配置](#静态页面配置) - `htmlCacheControl`: 默认`no-cache` - `imageCacheControl`: 默认`max-age=864000` +- `pdfCacheControl`: 默认`max-age=2592000` - `otherCacheControl`: 默认`max-age=2592000` - `exclude`: 不上传`folder`下的某些文件/文件夹 - `cname`: 默认`false`. 若`endpoint`填写自定义域名/bucket域名, 需设置为`true`. (使用CDN的场景下, 不推荐使用自定义域名)