From 193bb67c41b8f4e2032d68b317baa080dc3344f2 Mon Sep 17 00:00:00 2001 From: MIWdlB Date: Fri, 17 May 2024 16:54:55 +0100 Subject: [PATCH] poetry test and publish in release c --- .github/workflows/release.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 24e46e3..7fc4139 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,7 +1,10 @@ name: Release CICD on: + branches: + only: + - master release: - types: [prereleased] + types: [released] jobs: build: runs-on: ${{matrix.os}} @@ -43,8 +46,10 @@ jobs: with: python-version: '3.9' - name: Install poetry + run: pip install poetry + - name: Test build and publish run: | - pip install poetry + poetry config repositories.testpypi https://test.pypi.org/legacy/ + poetry publish --build -r testpypi --skip-existing -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.TESTPYPI_PASSWORD}} - name: Build and publish - run: | - poetry publish --build -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} \ No newline at end of file + run: poetry publish --build -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}} \ No newline at end of file