Skip to content

Commit

Permalink
[prod][test] use deploy_key
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Aug 28, 2024
1 parent 06ce64d commit a9f42c8
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/deployes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ jobs:
NEXT_PUBLIC_ENV: "prod"

- name: Deploy Gh-Pages 🚀
uses: hpcodecraft/[email protected]
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/[email protected]
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
Expand Down Expand Up @@ -81,14 +79,12 @@ jobs:
NEXT_PUBLIC_ENV: "test"

- name: Deploy Gh-Pages 🚀
uses: hpcodecraft/[email protected]
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/[email protected]
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
Expand Down

0 comments on commit a9f42c8

Please sign in to comment.