Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add workflow
- Loading branch information
1 parent
5dded9f
commit dca32cf9e503b85fb8c08eece075e3c5c76b26b6
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,38 @@ | ||
name: Cron Deploy | ||
|
||
on: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.16.1 | ||
|
||
- name: Build | ||
run: | | ||
git clone https://github.com/apache/incubator-doris.git incubator-doris | ||
export BRANCH=master | ||
cd incubator-doris/docs && npm install && npm run build | ||
touch .vuepress/dist/.dummy | ||
ls .vuepress/dist/ | ||
export DORIS_COMMIT=`git rev-parse HEAD` | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: asf-site | ||
publish_dir: ./incubator-doris/docs/.vuepress/dist | ||
destination_dir: master | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' | ||
commit_message: 'Automated deployment with doris branch master@${{ env.DORIS_COMMIT }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters