diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 24eb603..c7e0bc8 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -23,4 +23,20 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Test build website - run: yarn build \ No newline at end of file + run: yarn build + + deploy: + name: Deploy to AliCloud OSS + needs: test-deploy + runs-on: ubuntu-latest + steps: + - name: Test check + run: ls -la + - uses: YangHanlin/oss-deployment-action@v1 + with: + oss-endpoint: oss-cn-beijing.aliyuncs.com + oss-accesskey-id: ${{ secrets.ALIYUN_OSS_ACCESSKEY_ID }} + oss-accesskey-secret: ${{ secrets.ALIYUN_OSS_ACCESSKEY_SECRET }} + oss-path: oss://tongsuo-doc/ + local-path: ./build + delete-first: true \ No newline at end of file