Add auto docs build with repository actions.
All checks were successful
/ build_docs (push) Successful in 34s
All checks were successful
/ build_docs (push) Successful in 34s
This commit is contained in:
parent
20360fc412
commit
bc19d0a49f
2 changed files with 24 additions and 4 deletions
24
.forgejo/workflows/docs.yaml
Normal file
24
.forgejo/workflows/docs.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: docs
|
||||||
|
path: artifact
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
yarn docs:build
|
|
||||||
(cd .vitepress/dist && tar cvzf docs.tar.gz * && mv docs.tar.gz ../..)
|
|
Loading…
Reference in a new issue