Skip to content

Commit

Permalink
ci: run poetry publish without using a separate action (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored Oct 9, 2023
1 parent 2f6d5c3 commit 564d3ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
SPLUNK_HOME=/opt/splunk/ poetry run pytest --junitxml=test-results/results.xml -v tests/integration
- uses: actions/upload-artifact@v3
with:
name: test-splunk test-results
name: test-splunk
path: test-results

publish:
Expand All @@ -148,7 +148,7 @@ jobs:
- pre-commit
- semgrep
- run-unit-tests
# - test-splunk
- test-splunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -162,6 +162,7 @@ jobs:
python-version: "3.7"
- run: curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
- run: |
poetry install
poetry build
- id: semantic
uses: splunk/[email protected]
Expand All @@ -171,11 +172,10 @@ jobs:
gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}
extra_plugins: |
@google/semantic-release-replace-plugin
semantic-release-replace-plugin
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
- if: ${{ steps.semantic.outputs.new_release_published == 'true' }}
uses: splunk/[email protected]
with:
pypi_username: ${{ secrets.PYPI_USERNAME }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry publish -n -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[
"@semantic-release/commit-analyzer",
[
"@google/semantic-release-replace-plugin",
"semantic-release-replace-plugin",
{
"replacements": [
{
Expand Down

0 comments on commit 564d3ca

Please sign in to comment.