Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 25, 2024
0 parents commit ca767a4
Show file tree
Hide file tree
Showing 270 changed files with 372,445 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/obs/docsify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitBook-Legacy to GitHub Pages
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
TZ: "Asia/Shanghai"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
- name: Install dependency
run: |
sudo apt-get -qq update
sudo apt-get install -y python3
- name: Trigger personal build script
run: |
cat HEADER|tee README.md
python3 toc.py
mkdir .public
cp -r * .public
mv .public public
touch public/.nojekyll
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: public
fqdn: ${{secrets.CUSTOM_DOMAIN}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
49 changes: 49 additions & 0 deletions .github/workflows/gitbook-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: GitBook-Legacy to GitHub Pages
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
TZ: "Asia/Shanghai"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "14.x"

- name: Install dependency
run: |
sudo apt-get -qq update
sudo apt-get install -y python3 calibre xvfb
npm install @gitbook-ng/gitbook -g
npm install gitbook-plugin-katex-pro
#npm install gitbook-plugin-mathjax-single-dollar
npm install svgexport -g
npx gitbook install
- name: Trigger personal build script
run: |
cat HEADER|tee README.md
python3 toc.py
if [ ! -d books ];then mkdir books;fi
npx gitbook build
npx gitbook epub . books/CharlesNotes.epub
npx gitbook mobi . books/CharlesNotes.mobi
cp -r books _book
rm _book/.gitignore
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: _book
fqdn: ${{secrets.CUSTOM_DOMAIN}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Empty file added .nojekyll
Empty file.
Empty file added .scripts/a.md
Empty file.
Binary file added A0-Mathmatics/Lorenz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca767a4

Please sign in to comment.