From bbea607b55dc854b94cf9da13bc4a09409a8adf2 Mon Sep 17 00:00:00 2001 From: nadobando <7695172+nadobando@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:24:04 +0300 Subject: [PATCH] ci: fixing docs deployment --- .github/workflows/ci.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb6eaf8..3b1b55d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,6 +110,7 @@ jobs: if: github.ref == 'refs/heads/main' needs: - test + - pre-commit runs-on: ubuntu-latest concurrency: release permissions: @@ -155,8 +156,11 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - - run: .venv/bin/mkdocs gh-deploy --force + + - run: poetry install --no-interaction --only docs + + - run: poetry run mkdocs gh-deploy --force + - run: | poetry build @@ -190,19 +194,3 @@ jobs: - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - -# - name: Publish package distributions to GitHub Releases -# uses: python-semantic-release/upload-to-gh-release@main -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} - - - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 - with: - key: mkdocs-material-${{ env.cache_id }} - path: .cache - restore-keys: | - mkdocs-material- - - run: pip install mkdocs-material - - run: mkdocs gh-deploy --force