Skip to content

Commit ff62cba

Browse files
committed
Just remove the commit SHA altogether
1 parent 6d9299a commit ff62cba

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ on:
66
types: [published]
77
workflow_dispatch:
88

9+
env:
10+
DIST_DIR: dist/
11+
912
jobs:
1013
build-distributables:
1114
# Why building is separate from publishing:
1215
# https://github.com/pypa/gh-action-pypi-publish/issues/217#issuecomment-1965727093
1316
runs-on: ubuntu-latest
1417
outputs:
15-
version: ${{ steps.set-version.outputs.version }}
18+
version: ${{ steps.get-version.outputs.version }}
1619
steps:
1720
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1821
with:
@@ -28,16 +31,18 @@ jobs:
2831
VERSION_BASE="$(uv version --short)"
2932
RUN_NUMBER="${{ github.run_number }}"
3033
uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}"
31-
echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
34+
- name: Get current version
35+
id: get-version
36+
run: echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
3237
- name: Build packages for distribution
3338
run: uv build
3439
- name: Run AppInspect
3540
uses: ./.github/actions/run-appinspect
3641
- name: Upload distributables
3742
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
3843
with:
39-
name: splunk-sdk-${{ steps.set-version.outputs.version }}-g${{ github.sha }}
40-
path: dist/
44+
name: splunk-sdk-${{ steps.get-version.outputs.version }}
45+
path: ${{ env.DIST_DIR }}
4146
- name: Generate API reference
4247
run: make -C ./docs html
4348
- name: Upload docs artifact
@@ -59,7 +64,8 @@ jobs:
5964
- name: Download distributables
6065
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
6166
with:
62-
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
67+
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}
68+
path: ${{ env.DIST_DIR }}
6369
- name: Publish packages to Test PyPI
6470
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
6571
with:
@@ -78,8 +84,8 @@ jobs:
7884
- name: Download distributables
7985
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
8086
with:
81-
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
82-
path: dist/
87+
name: splunk-sdk-${{ needs.build-distributables.outputs.version }}
88+
path: ${{ env.DIST_DIR }}
8389
- name: Publish packages to PyPI
8490
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
8591
with:

0 commit comments

Comments
 (0)