From d8e058086f139dfdf631e5dedcb65af2df9027f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:35:43 +0800 Subject: [PATCH 1/7] Create blank.yml --- .github/workflows/blank.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..4c03b26 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,42 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Upload COS + uses: TencentCloud/cos-action@v1 + with: + secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} + secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} + cos_bucket: ${{ secrets.COS_BUCKET }} + cos_region: ${{ secrets.COS_REGION }} + local_path: . + remote_path: / + clean: true From d97b57450521daf3e5597fefb0f9f9354e3340d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:39:40 +0800 Subject: [PATCH 2/7] Update blank.yml --- .github/workflows/blank.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4c03b26..3ba9dbc 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: Deploy # Controls when the workflow will run on: @@ -23,12 +23,8 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - + - uses: actions/checkout@v4 + # Runs a set of commands using the runners shell - name: Upload COS uses: TencentCloud/cos-action@v1 @@ -37,6 +33,6 @@ jobs: secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} cos_bucket: ${{ secrets.COS_BUCKET }} cos_region: ${{ secrets.COS_REGION }} - local_path: . - remote_path: / + local_path: '' + remote_path: '' clean: true From d7c9fbc420b3bcf81360d23a8fc91517f7c45990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:40:23 +0800 Subject: [PATCH 3/7] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 3ba9dbc..54a5258 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -33,6 +33,6 @@ jobs: secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} cos_bucket: ${{ secrets.COS_BUCKET }} cos_region: ${{ secrets.COS_REGION }} - local_path: '' + local_path: '.' remote_path: '' clean: true From 8f53b72ad81ffdde66ba41f6a86338964782fc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:46:07 +0800 Subject: [PATCH 4/7] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 54a5258..9cd3282 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,7 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - + - run: cd .. # Runs a set of commands using the runners shell - name: Upload COS uses: TencentCloud/cos-action@v1 @@ -33,6 +33,6 @@ jobs: secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} cos_bucket: ${{ secrets.COS_BUCKET }} cos_region: ${{ secrets.COS_REGION }} - local_path: '.' + local_path: 'monitor-metadata' remote_path: '' clean: true From 9212b08383ad6675541fc81d08a913b5076d3eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:48:39 +0800 Subject: [PATCH 5/7] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 9cd3282..ff38439 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,7 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - run: cd .. + - run: pwd # Runs a set of commands using the runners shell - name: Upload COS uses: TencentCloud/cos-action@v1 From d285a522fe345a0ce2816860508e092260a615bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:49:42 +0800 Subject: [PATCH 6/7] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index ff38439..3b047d0 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,7 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - run: pwd + # Runs a set of commands using the runners shell - name: Upload COS uses: TencentCloud/cos-action@v1 @@ -33,6 +33,6 @@ jobs: secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} cos_bucket: ${{ secrets.COS_BUCKET }} cos_region: ${{ secrets.COS_REGION }} - local_path: 'monitor-metadata' + local_path: '../monitor-metadata' remote_path: '' clean: true From 66c589a9ac65ac5945293529aea6bc8b54ef000b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Mon, 11 Sep 2023 23:51:37 +0800 Subject: [PATCH 7/7] Update blank.yml --- .github/workflows/blank.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 3b047d0..170eaa3 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -33,6 +33,7 @@ jobs: secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} cos_bucket: ${{ secrets.COS_BUCKET }} cos_region: ${{ secrets.COS_REGION }} - local_path: '../monitor-metadata' - remote_path: '' + local_path: 'as' + remote_path: 'as' clean: true +