zrm/.forgejo/workflows/docs.yaml
Madeorsk 0868c0db35
Some checks failed
/ build_docs (push) Failing after 32s
Add auto docs build with repository actions.
2025-01-14 11:43:36 +01:00

24 lines
686 B
YAML

on:
push:
tags:
- "*"
jobs:
build_docs:
runs-on: docker
container:
image: docker.zeptotech.net/zeptotech/zig-yarn:1.1.0
credentials:
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
steps:
- uses: actions/checkout@v4
- run: mkdir -p artifact/api
- run: (cd docs && corepack enable && yarn install)
- run: (cd docs && yarn docs:build)
- run: mv docs/.vitepress/dist/* artifact
- run: /zig/zig build docs
- run: mv zig-out/docs/* artifact/api
- uses: actions/upload-artifact@v4
with:
name: docs
path: artifact