32 lines
586 B
YAML
32 lines
586 B
YAML
name: docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
container:
|
|
image: peaceiris/mdbook
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
run: apk add --no-cache git nodejs util-linux
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build mdBook
|
|
run: mdbook build
|
|
working-directory: docs
|
|
|
|
- name: Save artifacts
|
|
uses: forgejo/upload-artifact@v4
|
|
with:
|
|
name: docs
|
|
path: docs/book
|
|
if-no-files-found: error
|
|
|
|
- name: Done
|
|
run: echo done!
|