Skip to content

✏2B产品

✏2B产品 #1196

Workflow file for this run

name: buildbook
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 安装依赖
run: |
npm install
- name: 书籍打包
run: |
npm run build
-
name: 部署到 GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: dist
jekyll: false
fqdn: note.ismy.wang
env:
GITHUB_TOKEN: ${{ secrets.THE_GITHUB_TOKEN }}