-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 将官网内容全部迁移到 site 目录下 * chore: update release.yml * fix: 修复 lint 问题 * chore: deploy dist to gh-pages * fix: cr suggestion * chore: remove useless files * chore: modify ignore file * chore: remove useless files * chore: fix babel__traverse error see: https://stackoverflow.com/questions/63903376/angular-node-modules-types-babel-traverse-index-d-ts1137-43-error-ts1109 * chore: use yarn install instead of npm
- Loading branch information
Showing
1,061 changed files
with
1,445 additions
and
55 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -13,21 +13,24 @@ jobs: | |
- run: yarn install | ||
- run: npm run lint | ||
|
||
publish-site: | ||
deploy-site: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cd site | ||
- run: yarn install | ||
- run: npm run site:build | ||
- run: npm run build | ||
- run: | | ||
cd .. | ||
git init | ||
git config --local user.name antv | ||
git config --local user.email [email protected] | ||
mv site/dist ./ | ||
git add dist -f | ||
git commit -m "update by release action" | ||
- uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}} | ||
branch: g2plot-site | ||
branch: gh-pages | ||
force: true |
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
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
Oops, something went wrong.