From f044386d0faf15cdc8539a7046f78cb1cfe3ea24 Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 26 Jan 2022 00:44:39 +0100 Subject: [PATCH] No luck with rebuilt script either --- .../workflows/github_action_build_docs.yml | 24 ++++++++++++------- docs/Makefile | 1 - 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github_action_build_docs.yml b/.github/workflows/github_action_build_docs.yml index 53cfabb3a3..1adea6660d 100644 --- a/.github/workflows/github_action_build_docs.yml +++ b/.github/workflows/github_action_build_docs.yml @@ -21,25 +21,33 @@ jobs: python-version: [3.7] steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v2 - if: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'}} - with: - fetch-depth: 0 + - name: Install doc-building dependencies run: | - git config --global user.email "docbuilder@evennia.com" - git config --global user.name "Evennia docbuilder action" python -m pip install --upgrade pip + cd docs/ + make install + + # full game dir needed for mv-local + - name: Set up evennia game dir + run: | pip install -e . pip install -r requirements_extra.txt cd .. evennia --init gamedir cd gamedir evennia migrate - cd ../evennia/docs/ - make install + + - name: Build and deploy docs (only from master/develop branch) + if: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'}} + run: | + git config --global user.email "docbuilder@evennia.com" + git config --global user.name "Evennia docbuilder action" + cd docs make release diff --git a/docs/Makefile b/docs/Makefile index 92780c2e48..748dd61c9e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -3,7 +3,6 @@ SOURCEDIR = source BUILDDIR = build AUTODOCDIR = $(SOURCEDIR)/api - # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?=