diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc6163a..6eacf48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,19 +50,30 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - - name: Upload to Tencent COS - uses: zkqiang/tencent-cos-action@v0.1.0 - with: - args: upload -rsf --delete ./public/ / - secret_id: ${{ secrets.SECRET_COS_ID }} - secret_key: ${{ secrets.SECRET_COS_KEY }} - bucket: ${{ secrets.COS_CN_BUCKET }} - region: ap-shanghai + # - name: Upload to Tencent COS + # uses: zkqiang/tencent-cos-action@v0.1.0 + # with: + # args: upload -rsf --delete ./public/ / + # secret_id: ${{ secrets.SECRET_COS_ID }} + # secret_key: ${{ secrets.SECRET_COS_KEY }} + # bucket: ${{ secrets.COS_CN_BUCKET }} + # region: ap-shanghai + + # - name: Tencent CDN Purge + # uses: keithnull/tencent-cloud-cdn-purge-cache@v1.0 + # env: + # SECRET_ID: ${{ secrets.SECRET_COS_ID }} + # SECRET_KEY: ${{ secrets.SECRET_COS_KEY }} + # PATHS: "https://kexima.com/,https://www.kexima.com/" + # FLUSH_TYPE: "delete" # optional - - name: Tencent CDN Purge - uses: keithnull/tencent-cloud-cdn-purge-cache@v1.0 - env: - SECRET_ID: ${{ secrets.SECRET_COS_ID }} - SECRET_KEY: ${{ secrets.SECRET_COS_KEY }} - PATHS: "https://kexima.com/,https://www.kexima.com/" - FLUSH_TYPE: "delete" # optional \ No newline at end of file + - name: Deploy to Aliyun OSS + uses: fangbinwei/aliyun-oss-website-action@v1 + with: + accessKeyId: ${{ secrets.ACCESS_KEY_ID }} + accessKeySecret: ${{ secrets.ACCESS_KEY_SECRET }} + bucket: kexima + endpoint: oss-cn-shanghai.aliyuncs.com + folder: public + # exclude: | + # tmp.txt \ No newline at end of file