onejar99 / demo-build-and-publish-gitbook Goto Github PK
View Code? Open in Web Editor NEWDemo how to build and publish your GitBook free
Demo how to build and publish your GitBook free
您好,我參考您的代碼做了一個workflow,去年可以工作,但是我今天 發現action一直無法成功,從log來看,好像是anchor-navigation-ex插件的問題,你那裡能正常工作嗎?
您好,最近在設定自己的 gitbook, 參考完你的文章後受益良多,但由於對 gihub page 及 github action 的機制不是很了解,想要請教一下:
我依照你給的 build.yaml
建立完 yaml
檔後(如下), 可以成功建立 gitbook, 但每次再去 setting -> page 設定完 custom domain 後(ex: leetcode.shdennlin.com),當下是可以 chame 成功的,但在新的 commit push上github時,custom domain 就會消失,會變成github預設的 shdennlin.github.io/leetcode ,想請教該如何在 github 的 workflow 解決,謝謝
name: Build and Publish My GitBook
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
env:
MY_SECRET : ${{secrets.GH_ACCESS_TOKEN}}
USER_NAME : shdennlin
USER_EMAIL : [email protected]
BOOK_DIR : .
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- run: npm i gitbook-plugin-sitemap
- name: Build and Deploy 🚀
uses: onejar99/[email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.