From dd2488d87439306e0baf90ac1c52e937f6d9550b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20J=C4=99drecki?= Date: Wed, 13 May 2026 15:10:51 +0200 Subject: [PATCH] TO BE REVIEWED --- .github/workflows/cd.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f1b18bc8..c1ee0e9c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -79,6 +79,32 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ + create-github-pre-release: + if: startsWith(github.ref, 'refs/tags/') == false + needs: [build-distributables, publish-pre-release] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Download distributables + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c + with: + name: splunk-sdk-${{ needs.build-distributables.outputs.version }} + path: ${{ env.DIST_DIR }} + - name: Create GitHub pre-release + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + VERSION: ${{ needs.build-distributables.outputs.version }} + RUN_NUMBER: ${{ github.run_number }} + DIST_GLOB: ${{ env.DIST_DIR }}* + run: | + gh release create "v${VERSION}" \ + --prerelease \ + --title "v${VERSION}" \ + --notes "Automated pre-release from run ${RUN_NUMBER}." \ + ${DIST_GLOB} + publish-release: if: startsWith(github.ref, 'refs/tags/') == true needs: build-distributables