talc/.forgejo/workflows/docs.yaml

33 lines
586 B
YAML
Raw Normal View History

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