forked from mCaptcha/website
feat: setup CI to build mcaptcha.io
branch and publish to
`mcaptcha-io-pages` branch
This commit is contained in:
parent
2bff56060a
commit
fc3b6152da
1 changed files with 3 additions and 2 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -3,7 +3,7 @@ name: github pages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master # Set a branch to deploy
|
- mcaptcha.io # Set a branch to deploy
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -43,8 +43,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
|
publish_branch: "mcaptcha-io-pages"
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'mCaptcha/website' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'mCaptcha/website' }}
|
||||||
run: >-
|
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\" }"
|
||||||
|
|
Loading…
Reference in a new issue