Skip to content

Commit 7595e8d

Browse files
committed
docs: add manual workflow to update docs through ci
Notes: - the current result is not the same as running outside docker - src links points to HEAD because git is not installed, neither .git dir is included in the image Only use this if is a emergency, otherwise, run locally: make docs docs-publish
1 parent 5b7a250 commit 7595e8d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/docs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docs
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build-and-publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
15+
- name: Build docs using docker
16+
run: make docker-docs
17+
18+
- name: Publish docs to gh-pages
19+
run: make docs-publish

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ docker-build:
3535
docker-shell: docker-build
3636
docker run --rm -it --entrypoint=/bin/bash $(DOCKER_IMG)
3737

38-
3938
docker-run: docker-build
4039
docker run --rm -it --network=host $(DOCKER_IMG)
4140

41+
docker-docs: docker-build docs-worktree
42+
docker run --rm -t -v $(PWD)/docs:/root/.roswell/local-projects/local/lisp-inference/docs --entrypoint=ros $(DOCKER_IMG) run -l run-docs.lisp
43+
4244
docker-check: docker-build
4345
docker run --rm -t --entrypoint=ros $(DOCKER_IMG) run -l run-test.lisp
4446

0 commit comments

Comments
 (0)