From c0554c1a8883e5ca3d37e2bf3be8e9a2058bc17d Mon Sep 17 00:00:00 2001 From: Yee Kit Date: Thu, 25 Jan 2024 13:21:41 +0800 Subject: [PATCH] Create push-to-external-deploy-repo.yml --- .github/workflows/push-to-external-repo.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/push-to-external-repo.yml diff --git a/.github/workflows/push-to-external-repo.yml b/.github/workflows/push-to-external-repo.yml new file mode 100644 index 0000000..4a613e4 --- /dev/null +++ b/.github/workflows/push-to-external-repo.yml @@ -0,0 +1,19 @@ +name: (main) push to external deploy repo +on: + push: + branches: + - main +jobs: + push-to-external-deploy-repo: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v3 + - name: push to external deploy repository + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.SSH_DEPLOY_KEY }} + publish_dir: . + external_repository: JTC-Smart-Retrieval/Smart-Retrieval + publish_branch: main + allow_empty_commit: true