diff --git a/.github/workflows/python_publish.yml b/.github/workflows/python_publish.yml index 47aa47b..3f1755d 100644 --- a/.github/workflows/python_publish.yml +++ b/.github/workflows/python_publish.yml @@ -7,6 +7,10 @@ jobs: name: Build distribution 📦 runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd + AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 + steps: - uses: actions/checkout@v4 - name: Set up Python @@ -40,6 +44,10 @@ jobs: permissions: id-token: write # IMPORTANT: mandatory for trusted publishing + env: + RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd + AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 + steps: - name: Download all the dists uses: actions/download-artifact@v4 @@ -61,6 +69,10 @@ jobs: contents: write # IMPORTANT: mandatory for making GitHub Releases id-token: write # IMPORTANT: mandatory for sigstore + env: + RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd + AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 + steps: - name: Download all the dists uses: actions/download-artifact@v4 @@ -105,6 +117,10 @@ jobs: permissions: id-token: write # IMPORTANT: mandatory for trusted publishing + env: + RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd + AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 + steps: - name: Download all the dists uses: actions/download-artifact@v4