2024-12-25 22:05:45 -05:00
|
|
|
name: docs
|
2024-12-25 22:55:38 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-12-25 16:20:10 -05:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
2024-12-25 17:28:51 -05:00
|
|
|
|
2024-12-25 17:24:13 -05:00
|
|
|
container:
|
|
|
|
image: peaceiris/mdbook
|
2024-12-25 17:28:51 -05:00
|
|
|
|
2024-12-25 16:20:10 -05:00
|
|
|
steps:
|
2024-12-25 17:30:35 -05:00
|
|
|
- name: Install dependencies
|
|
|
|
run: apk add --no-cache git nodejs util-linux
|
|
|
|
|
2024-12-25 17:28:51 -05:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Build mdBook
|
|
|
|
run: mdbook build
|
2024-12-25 17:24:51 -05:00
|
|
|
working-directory: docs
|
2024-12-25 17:28:51 -05:00
|
|
|
|
2024-12-25 21:56:07 -05:00
|
|
|
- name: Save artifacts
|
2024-12-25 22:05:45 -05:00
|
|
|
uses: forgejo/upload-artifact@v4
|
2024-12-25 21:56:07 -05:00
|
|
|
with:
|
|
|
|
name: docs
|
2024-12-25 22:00:52 -05:00
|
|
|
path: docs/book
|
2024-12-25 21:59:11 -05:00
|
|
|
if-no-files-found: error
|
2024-12-25 21:56:07 -05:00
|
|
|
|
2024-12-25 17:28:51 -05:00
|
|
|
- name: Done
|
|
|
|
run: echo done!
|