Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down