Skip to content

Add files via upload #31

Add files via upload

Add files via upload #31

Workflow file for this run

name: Publish docs to github pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: v18.x
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Pages
uses: actions/configure-pages@v3
- name: install honkit
run: npm install -g honkit gitbook-plugin-github-issue-feedback gitbook-plugin-page-toc-button gitbook-plugin-summary
- name: build doc
run: honkit build
# run it twice for including autogenerated summary
- name: build doc
run: honkit build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./_book
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2