From 7b54f4447f19766380a8655857f951d3c8e08e72 Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawar@subcom.tech> Date: Tue, 11 Oct 2022 14:48:12 +0530 Subject: [PATCH] feat: Enabled gitlab pages job See https://gitlab.com/pages/sphinx/-/blob/master/.gitlab-ci.yml --- .gitlab-ci.yml | 11 +++++++++++ Makefile | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8a40224..70e4fc7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,3 +33,14 @@ build:windows: - python -m pip install . - python -m bitia --help - python -m bitia run "ls -ltrh /" + +pages: + tags: + - linux + stage: deploy + script: + - python3 -m pip install sphinx + - sphinx-build -b html docs public + artifacts: + paths: + - public diff --git a/Makefile b/Makefile index f4dad42..a4157e4 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,11 @@ release: rm -rf dist/*.whl bash ./.ci/realese.sh -doc html: +docs doc html: cd docs && make html .PHONY : copr fix test install lint build \ + doc docs html \ all check \ - runner gitlab-runner image image_upload + runner gitlab-runner \ + image image_upload -- GitLab