Skip to content

Commit

Permalink
feat: add sync site action (#1734)
Browse files Browse the repository at this point in the history
Co-authored-by: xuying.xu <xuying.xu@alibaba-inc.com>
  • Loading branch information
tangying1027 and xuying.xu committed Feb 21, 2023
1 parent b3a409e commit f6ec02c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 馃 Sync to gh-pages

on:
push:
branches:
- v5.0.x

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: cd site && yarn install
- run: cd site && npm run site:build
- run: |
cd site/dist
git init
git config --local user.name antv
git config --local user.email antv@antfin.com
git add .
git commit -m "update site"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}
directory: site/dist
branch: gh-pages
force: true

0 comments on commit f6ec02c

Please sign in to comment.