From 564d3ca5ca4926488816d9cf5d108fb52bf6287d Mon Sep 17 00:00:00 2001 From: Artem Rys Date: Mon, 9 Oct 2023 13:18:30 +0200 Subject: [PATCH] ci: run poetry publish without using a separate action (#318) --- .github/workflows/build-test-release.yml | 14 +++++++------- .releaserc | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index ca05f68e..f6110315 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -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: @@ -148,7 +148,7 @@ jobs: - pre-commit - semgrep - run-unit-tests -# - test-splunk + - test-splunk runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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/semantic-release-action@v1.3 @@ -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/pypi-publish-action@v1.0 - with: - pypi_username: ${{ secrets.PYPI_USERNAME }} - pypi_token: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file + run: | + poetry build + poetry publish -n -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_TOKEN }} diff --git a/.releaserc b/.releaserc index 63927cd4..64fa1f8b 100644 --- a/.releaserc +++ b/.releaserc @@ -9,7 +9,7 @@ [ "@semantic-release/commit-analyzer", [ - "@google/semantic-release-replace-plugin", + "semantic-release-replace-plugin", { "replacements": [ {