File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,12 @@ jobs:
2020 - run : |
2121 yarn install
2222 yarn build:cn
23- - name : Install RClone
23+ - name : Install OSSUTIL
2424 run : |
25- curl https://rclone.org/install.sh | sudo bash
26- - name : Configure RClone
27- run : |
28- mkdir -p ~/.config/rclone
29- cat <<EOF > ~/.config/rclone/rclone.conf
30- [oss]
31- type = s3
32- provider = Alibaba
33- env_auth = true
34- endpoint = oss-cn-beijing.aliyuncs.com
35- EOF
25+ curl -sSLfo ossutil64 https://gosspublic.alicdn.com/ossutil/1.7.12/ossutil64
26+ chmod 755 ossutil64
27+ sudo mv ossutil64 /usr/local/bin/ossutil
28+ ossutil --version
3629 - name : Configure Aliyun credentials
3730 id : aliyun
3831 uses : mozillazg/alibabacloud-oidc-auth@v1
4134 region : cn-beijing
4235 role-session-name : github-actions-${{ github.run_id }}
4336 oidc-provider-arn : acs:ram::1953761221157405:oidc-provider/github
44- export-environment-variables : " true"
37+ set-outputs : " true"
4538 - name : Sync to OSS
4639 run : |
47- rclone sync ./build/ oss:databend-docs/
40+ ossutil \
41+ --access-key-id ${{ steps.aliyun.outputs.access-key-id }} \
42+ --access-key-secret ${{ steps.aliyun.outputs.access-key-secret }} \
43+ --sts-token ${{ steps.aliyun.outputs.security-token }} \
44+ --mode StsToken \
45+ --endpoint oss-cn-beijing.aliyuncs.com \
46+ sync ./build/ oss://databend-docs/ --delete -f
You can’t perform that action at this time.
0 commit comments