From ff62cbac93d917d1ace72884fcd797b27eeed796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20J=C4=99drecki?= Date: Fri, 8 May 2026 17:06:53 +0200 Subject: [PATCH] Just remove the commit SHA altogether --- .github/workflows/cd.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f1891559..d7d5114f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -6,13 +6,16 @@ on: types: [published] workflow_dispatch: +env: + DIST_DIR: dist/ + jobs: build-distributables: # Why building is separate from publishing: # https://github.com/pypa/gh-action-pypi-publish/issues/217#issuecomment-1965727093 runs-on: ubuntu-latest outputs: - version: ${{ steps.set-version.outputs.version }} + version: ${{ steps.get-version.outputs.version }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: @@ -28,7 +31,9 @@ jobs: VERSION_BASE="$(uv version --short)" RUN_NUMBER="${{ github.run_number }}" uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}" - echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT" + - name: Get current version + id: get-version + run: echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT" - name: Build packages for distribution run: uv build - name: Run AppInspect @@ -36,8 +41,8 @@ jobs: - name: Upload distributables uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a with: - name: splunk-sdk-${{ steps.set-version.outputs.version }}-g${{ github.sha }} - path: dist/ + name: splunk-sdk-${{ steps.get-version.outputs.version }} + path: ${{ env.DIST_DIR }} - name: Generate API reference run: make -C ./docs html - name: Upload docs artifact @@ -59,7 +64,8 @@ jobs: - name: Download distributables uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c with: - name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}} + name: splunk-sdk-${{ needs.build-distributables.outputs.version }} + path: ${{ env.DIST_DIR }} - name: Publish packages to Test PyPI uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b with: @@ -78,8 +84,8 @@ jobs: - name: Download distributables uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c with: - name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}} - path: dist/ + name: splunk-sdk-${{ needs.build-distributables.outputs.version }} + path: ${{ env.DIST_DIR }} - name: Publish packages to PyPI uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b with: