diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e06564d..0747696 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,11 @@ on: branches: - main +env: + STABLE_PYTHON_VERSION: '3.11' + PYTHONUNBUFFERED: "1" + FORCE_COLOR: "1" + permissions: contents: write diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e3a0e5..cd6988a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,11 @@ on: types: - published +env: + STABLE_PYTHON_VERSION: '3.11' + PYTHONUNBUFFERED: "1" + FORCE_COLOR: "1" + jobs: pypi-publish: name: upload release to PyPI @@ -14,5 +19,11 @@ jobs: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: + - name: Ensure latest pip and hatch + run: | + python -m pip install --upgrade pip + pip install hatch + - name: Make the build + run: hatch build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1