Skip to content
Permalink
Browse files
Add github action for test
  • Loading branch information
morningman-cmy committed Dec 13, 2021
1 parent 883c786 commit 64284fa0e42de7d261d986f4aa5dd09b7fff2c6d
Showing 1 changed file with 23 additions and 5 deletions.
@@ -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:'

0 comments on commit 64284fa

Please sign in to comment.