mirror of
https://github.com/foxsen/archbase.git
synced 2026-02-04 02:43:33 +08:00
33 lines
666 B
YAML
33 lines
666 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
name: renderbook
|
|
|
|
permissions:
|
|
contents: write
|
|
pages: write
|
|
gh-pages: write
|
|
|
|
jobs:
|
|
bookdown:
|
|
name: Render-Book
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: foxsen76/archbase-builder:latest
|
|
steps:
|
|
- name: bookdown builder
|
|
run: cd /opt/archbase && git pull && make -j 8 && cp -a ./_book /github/home/
|
|
|
|
- name: Deploy to GitHub Pages
|
|
uses: Cecilapp/GitHub-Pages-deploy@v3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
email: 2503799872@qq.com
|
|
build_dir: /github/home/_book/
|