diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 00ed960..c71c315 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -2,7 +2,7 @@ name: deploy on: push: - branches: ["a"] + branches: ["workflow"] pull_request: branches: ["a"] @@ -26,10 +26,12 @@ jobs: - run: pip install sphinx furo - name: Generate - run: ./bs documentation + run: | + ./bs documentation + mv .documentation/singlehtml .pages - uses: actions/upload-pages-artifact@v3 with: - path: .web + path: .pages - uses: actions/deploy-pages@v4 diff --git a/bs b/bs index f87f0e8..d89f9ed 100755 --- a/bs +++ b/bs @@ -13,8 +13,8 @@ def build(): @task def documentation(command = "singlehtml"): - rm(".web") - sh("sphinx-build -M", command, "web .web 2>&1") + rm(".documentation") + sh("sphinx-build -M", command, "documentation .documentation 2>&1") @task(build) def publish(): sh("twine upload -r pypi dist/*") diff --git a/web/conf.py b/documentation/conf.py similarity index 100% rename from web/conf.py rename to documentation/conf.py diff --git a/web/index.rst b/documentation/index.rst similarity index 100% rename from web/index.rst rename to documentation/index.rst diff --git a/web/style.css b/documentation/style.css similarity index 100% rename from web/style.css rename to documentation/style.css