From 16049ba8198a0eacdda90a953c74b1e49eb2779a Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Sat, 14 Sep 2024 13:06:09 -0600 Subject: [PATCH] add caching to publishing CI --- .github/workflows/python_publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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