Skip to content

Commit

Permalink
feat: test wms test bucket dir
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Aug 4, 2023
1 parent 40c4704 commit 93dfb13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ jobs:
name: Release
runs-on: ubuntu-latest
env:
ACCESS_KEY_ID: ${{ secrets.ALIBABACLOUD_ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ALIBABACLOUD_ACCESS_KEY_SECRET }}
REGION: ${{ secrets.ALIBABACLOUD_REGION_ID }}
COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }}
COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
COS_BUCKET: ${{ secrets.COS_BUCKET }}
COS_REGION: ${{ secrets.COS_REGION }}


if: contains(github.event.head_commit.message, '__@production__')
steps:
- name: All in one
uses: afeiship/action-deploy2cos@master
with:
build_dist: "build"
oss_bucket: "oss://you-bucket/sub-path/assets/test-app-deploy2cos/"
oss_bucket: "cos://wms-dicfree-cn-1319335595/test/"

- name: Debug
run: |
Expand Down
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ runs:
shell: bash
run: yarn build

# step6: Config AliyunCli
# step6: Config TencentCli
- name: Use cos-cli
uses: afeiship/action-cos-cli@1.0.1
uses: afeiship/action-cos-cli@1.0.2

# step7: Deploy by aliyun-cli
# step7: Deploy by coscli
- name: Deploy by cos
shell: bash
run: |
coscli sync ${{ inputs.build_dist }} ${{ inputs.oss_bucket }} --force --delete
coscli rm ${{ inputs.oss_bucket }} --recursive --force
coscli sync ${{ inputs.build_dist }} ${{ inputs.oss_bucket }} --recursive --thread-num=10

0 comments on commit 93dfb13

Please sign in to comment.