1212 # https://github.com/pypa/gh-action-pypi-publish/issues/217#issuecomment-1965727093
1313 runs-on : ubuntu-latest
1414 outputs :
15- version : ${{ steps.get -version.outputs.version }}
15+ version : ${{ steps.set -version.outputs.version }}
1616 steps :
1717 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1818 with :
@@ -27,19 +27,16 @@ jobs:
2727 run : |
2828 VERSION_BASE="$(uv version --short)"
2929 RUN_NUMBER="${{ github.run_number }}"
30- COMMIT_SHA="$(git rev-parse --short HEAD)"
31- uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}+g${COMMIT_SHA}"
32- - name : Get current version
33- id : get-version
34- run : echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
30+ uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}"
31+ echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
3532 - name : Build packages for distribution
3633 run : uv build
3734 - name : Run AppInspect
3835 uses : ./.github/actions/run-appinspect
3936 - name : Upload distributables
4037 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
4138 with :
42- name : splunk-sdk-${{ steps.get -version.outputs.version }}
39+ name : splunk-sdk-${{ steps.set -version.outputs.version }}-g${{ github.sha }}
4340 path : dist/
4441 - name : Generate API reference
4542 run : make -C ./docs html
6259 - name : Download distributables
6360 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
6461 with :
65- name : splunk-sdk-${{ needs.build-distributables.outputs.version }}
66- path : dist/
62+ name : splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
6763 - name : Publish packages to Test PyPI
6864 uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
6965 with :
8278 - name : Download distributables
8379 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
8480 with :
85- name : splunk-sdk-${{ needs.build-distributables.outputs.version }}
81+ name : splunk-sdk-${{ needs.build-distributables.outputs.version }}-${{ github.sha}}
8682 path : dist/
8783 - name : Publish packages to PyPI
8884 uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
0 commit comments