From ea05540f24ec5ffb373b912fce835339cd13b69b Mon Sep 17 00:00:00 2001 From: Suraj Pai Date: Thu, 6 Feb 2025 15:30:08 -0500 Subject: [PATCH] Update publish and mkdocs workflows --- .github/workflows/publish.yml | 53 +++++++++++++++++------------------ mkdocs.yml | 2 +- 2 files changed, 26 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b15e899..a2b65ca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,36 +8,33 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2.2.2 - with: - python-version: 3.9 + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2.2.2 + with: + python-version: 3.9 - - name: Install poetry - run: make setup + - name: Install poetry + run: make setup - - name: Install poeblix for version freezing - run: poetry self add poeblix@latest - - - name: Bump version - run: | - poetry version prerelease + - name: Bump version + run: | + poetry version prerelease - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "Bump version" || echo "No changes to commit" + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Bump version" || echo "No changes to commit" - - name: Push changes - run: git push + - name: Push changes + run: git push - - name: Build with lockfile versions - run: poetry blixbuild --only-lock - - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_TOKEN }} + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.16 + with: + python_version: 3.9 + pypi_token: ${{ secrets.PYPI_TOKEN }} + allow_poetry_pre_release: "yes" + ignore_dev_requirements: "yes" diff --git a/mkdocs.yml b/mkdocs.yml index c6b1668..0edc99d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -36,7 +36,7 @@ plugins: - mkdocstrings: handlers: python: - docstring_style: google + # docstring_style: google options: # Removed the default filter that excludes private members (that is, members whose names start with a single underscore). filters: null