From fc3b6152da6a7e98a60ff762caf453a7ea5ffa55 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 6 Nov 2022 17:25:57 +0530 Subject: [PATCH] feat: setup CI to build `mcaptcha.io` branch and publish to `mcaptcha-io-pages` branch --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d31f150..6fb2fed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: github pages on: push: branches: - - master # Set a branch to deploy + - mcaptcha.io # Set a branch to deploy jobs: build: @@ -43,8 +43,9 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public + publish_branch: "mcaptcha-io-pages" - name: deploy if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'mCaptcha/website' }} run: >- - curl --location --request POST "https://deploy.batsense.net/api/v1/update" --header 'Content-Type: application/json' --data-raw "{ \"secret\": \"${{ secrets.DEPLOY_TOKEN }}\", \"branch\": \"gh-pages\" }" + curl --location --request POST "https://deploy.batsense.net/api/v1/update" --header 'Content-Type: application/json' --data-raw "{ \"secret\": \"${{ secrets.DEPLOY_TOKEN_MCAPTCHA_IO }}\", \"branch\": \"mcaptcha-io-pages\" }"