From 9391d3c2557cffbb4b06de9c46221d200a47e2ea Mon Sep 17 00:00:00 2001 From: Mohsen Taghavi <78661162+mohsenemx@users.noreply.github.com> Date: Sat, 30 Mar 2024 16:07:14 +0330 Subject: [PATCH 1/3] Update deploy_github_pages.yml --- .github/workflows/deploy_github_pages.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy_github_pages.yml b/.github/workflows/deploy_github_pages.yml index 0f6ca26..0d5a9d0 100644 --- a/.github/workflows/deploy_github_pages.yml +++ b/.github/workflows/deploy_github_pages.yml @@ -30,3 +30,14 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build + - name: Deploy to mirror repo + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.EXTERNAL_REPOSITORY_PERSONAL_ACCESS_TOKEN }} + with: + source-directory: public/ + destination-github-username: fxclient + destination-repository-name: fxclient.github.io + user-email: mohsenemx@gmail.com + # It defaults to `main` + target-branch: "gh-pages" From 00e4072017586cd2e60e79899d15b96a25b01429 Mon Sep 17 00:00:00 2001 From: Mohsen Taghavi <78661162+mohsenemx@users.noreply.github.com> Date: Sat, 30 Mar 2024 16:16:07 +0330 Subject: [PATCH 2/3] Update deploy_github_pages.yml --- .github/workflows/deploy_github_pages.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy_github_pages.yml b/.github/workflows/deploy_github_pages.yml index 0d5a9d0..60a4d8f 100644 --- a/.github/workflows/deploy_github_pages.yml +++ b/.github/workflows/deploy_github_pages.yml @@ -31,13 +31,13 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build - name: Deploy to mirror repo - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.EXTERNAL_REPOSITORY_PERSONAL_ACCESS_TOKEN }} - with: - source-directory: public/ - destination-github-username: fxclient - destination-repository-name: fxclient.github.io - user-email: mohsenemx@gmail.com - # It defaults to `main` - target-branch: "gh-pages" + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.EXTERNAL_REPOSITORY_PERSONAL_ACCESS_TOKEN }} + with: + source-directory: public/ + destination-github-username: fxclient + destination-repository-name: fxclient.github.io + user-email: mohsenemx@gmail.com + # It defaults to `main` + target-branch: "gh-pages" From 53f04151cf0cad282c3fea11f68f281ca92c49b0 Mon Sep 17 00:00:00 2001 From: Mohsen Taghavi <78661162+mohsenemx@users.noreply.github.com> Date: Sat, 30 Mar 2024 16:19:01 +0330 Subject: [PATCH 3/3] Update deploy_github_pages.yml --- .github/workflows/deploy_github_pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_github_pages.yml b/.github/workflows/deploy_github_pages.yml index 60a4d8f..6e5f1de 100644 --- a/.github/workflows/deploy_github_pages.yml +++ b/.github/workflows/deploy_github_pages.yml @@ -35,7 +35,7 @@ jobs: env: API_TOKEN_GITHUB: ${{ secrets.EXTERNAL_REPOSITORY_PERSONAL_ACCESS_TOKEN }} with: - source-directory: public/ + source-directory: / destination-github-username: fxclient destination-repository-name: fxclient.github.io user-email: mohsenemx@gmail.com