From a9f42c8b03f2a81e108dcdb04a3300b2b9641b57 Mon Sep 17 00:00:00 2001 From: eericxu <2681350846@qq.com> Date: Wed, 28 Aug 2024 15:26:04 +0800 Subject: [PATCH] [prod][test] use deploy_key --- .github/workflows/deployes.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deployes.yml b/.github/workflows/deployes.yml index 98074d3..b606a52 100644 --- a/.github/workflows/deployes.yml +++ b/.github/workflows/deployes.yml @@ -41,14 +41,12 @@ jobs: NEXT_PUBLIC_ENV: "prod" - name: Deploy Gh-Pages 🚀 - uses: hpcodecraft/action-deploy-workspace-to-repo@v2.2 - env: - GITHUB_ACCESS_TOKEN: ${{ secrets.DECOO_PAT }} - SRC_FOLDER: out - DEST_OWNER: decooio - DEST_REPO: cloud3-home-prod-deploy - DEST_BRANCH: main - DEST_FOLDER: docs + uses: XueMoMo/actions-gh-pages@v4.0.1 + with: + deploy_key: ${{ secrets.DK_PROD }} + publish_dir: ./out + external_repository: decooio/cloud3-home-prod-deploy + cname: crustcloud.io test: if: contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[all]') runs-on: ubuntu-latest @@ -81,14 +79,12 @@ jobs: NEXT_PUBLIC_ENV: "test" - name: Deploy Gh-Pages 🚀 - uses: hpcodecraft/action-deploy-workspace-to-repo@v2.2 - env: - GITHUB_ACCESS_TOKEN: ${{ secrets.DECOO_PAT }} - SRC_FOLDER: out - DEST_OWNER: decooio - DEST_REPO: cloud3-home-test-deploy - DEST_BRANCH: main - DEST_FOLDER: docs + uses: XueMoMo/actions-gh-pages@v4.0.1 + with: + deploy_key: ${{ secrets.DK_TEST }} + publish_dir: ./out + external_repository: decooio/cloud3-home-test-deploy + cname: test.crustcloud.io beta: if: contains(github.event.head_commit.message, '[beta]')|| contains(github.event.head_commit.message, '[all]') runs-on: ubuntu-latest