-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
weiliang-ms
committed
Nov 22, 2023
0 parents
commit 5b4c26a
Showing
1,594 changed files
with
2,231,749 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Doc | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12.18.2 | ||
- name: install gitbook | ||
run: npm install gitbook-cli gitbook-summary -g | ||
- name: set timezone | ||
run: sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
- name: install | ||
run: gitbook install | ||
- name: clear README.md | ||
run: echo "" > README.md | ||
- name: generate-toc | ||
run: book sm --disableTitleFormatting | ||
- name: build | ||
run: gitbook build | ||
- name: install git | ||
run: sudo apt-get install git -y | ||
- name: publish | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.AWESOME_PUBLISH_TOKEN }} | ||
run: | | ||
mkdir -p deploy-doc-dir | ||
cd deploy-doc-dir | ||
rm -rf * | ||
git init | ||
git config user.name "weiliang-ms" | ||
git config user.email "[email protected]" | ||
ls -R ../_book | ||
mv ../_book docs | ||
git add docs | ||
git commit -m "Update docs" | ||
git push --force "https://[email protected]/weiliang-ms/wl-awesome" master:docs |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.idea | ||
.DS_Store | ||
npm-debug.log | ||
*.orig | ||
package-lock.json | ||
*.iml | ||
/_book/ | ||
/node_modules/ | ||
.npmrc |
Empty file.
Oops, something went wrong.