Skip to content

Commit

Permalink
chore: introduce internal publish pypi action (splunk#646)
Browse files Browse the repository at this point in the history
* chore: introduce pypi action

* chore: remove beta version regex
  • Loading branch information
mkolasinski-splunk authored Feb 13, 2023
1 parent a47f6ec commit a513e3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,17 @@ jobs:
- name: Update Notices
run: cp -f THIRDPARTY NOTICE
- name: Semantic Release
id: semantic
uses: splunk/semantic-release-action@v1.2
with:
extra_plugins: |
@google/semantic-release-replace-plugin
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish to pypi
if: ${{ steps.semantic.outputs.new_release_published == 'true' }}
uses: splunk/pypi-publish-action@v1.0
with:
pypi_username: ${{ secrets.PYPI_USERNAME }}
pypi_token: ${{ secrets.PYPI_TOKEN }}

5 changes: 0 additions & 5 deletions .github/workflows/sr-prepare.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/sr-release.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@
[
"@semantic-release/exec",
{
"prepareCmd": "./.github/workflows/sr-prepare.sh ${nextRelease.version}",
"publishCmd": "./.github/workflows/sr-release.sh",
"shell": "bash",
"verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT",
"successCmd": "echo \"new_release_published=${'true'}\" >> $GITHUB_OUTPUT"
},
Expand Down

0 comments on commit a513e3b

Please sign in to comment.