This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris-website.git
The following commit(s) were added to refs/heads/master by this push: new 64284fa Add github action for test 64284fa is described below commit 64284fa0e42de7d261d986f4aa5dd09b7fff2c6d Author: morningman <chenmin...@baidu.com> AuthorDate: Mon Dec 13 13:14:14 2021 +0800 Add github action for test --- .github/workflows/website.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 4fb27a5..3cb9e41 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -1,6 +1,12 @@ -name: Build and Deploy +name: Manual Deploy -on: [workflow_dispatch] +on: + workflow_dispatch: + inputs: + branch: + description: 'Specify the branch name' + required: true + default: 'master' jobs: build-and-deploy: @@ -13,11 +19,23 @@ jobs: uses: actions/setup-node@v1 with: node-version: 14.16.1 + - name: Build run: | - echo "ok" git clone https://github.com/apache/incubator-doris.git incubator-doris cd incubator-doris/docs && npm install - export BRANCH=master - npm run build + export BRANCH=${{ github.event.inputs.branch }} + mkdir -p .vuepress/dist/a.txt ls .vuepress/dist/ + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: asf-site + publish_dir: incubator-doris/.vuepress/dist/ + destination_dir: test + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + commit_message: 'Automated deployment:' + --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org