From 9b3f3ef3f06a0ad4c882712d1538fd4ce0b7f8d3 Mon Sep 17 00:00:00 2001 From: BjornFJohansson Date: Thu, 23 Nov 2023 06:32:39 +0000 Subject: [PATCH] split build workflows for pypi and testpypi --- .../workflows/pydna_pypi_build_workflow.yml | 5 +---- .../pydna_test_pypi_build_workflow.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/pydna_test_pypi_build_workflow.yml diff --git a/.github/workflows/pydna_pypi_build_workflow.yml b/.github/workflows/pydna_pypi_build_workflow.yml index b4f9d3f3..1a596221 100644 --- a/.github/workflows/pydna_pypi_build_workflow.yml +++ b/.github/workflows/pydna_pypi_build_workflow.yml @@ -4,7 +4,6 @@ on: types: [published] branches: - master - - dev_bjorn jobs: build: runs-on: ubuntu-latest @@ -13,7 +12,5 @@ jobs: - name: Build and publish to pypi uses: JRubics/poetry-publish@v1.16 with: - pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} - repository_name: "testpypi" - repository_url: "https://test.pypi.org/legacy/" + pypi_token: ${{ secrets.PYPI_TOKEN }} plugins: "poetry-dynamic-versioning[plugin]" diff --git a/.github/workflows/pydna_test_pypi_build_workflow.yml b/.github/workflows/pydna_test_pypi_build_workflow.yml new file mode 100644 index 00000000..e78f50d4 --- /dev/null +++ b/.github/workflows/pydna_test_pypi_build_workflow.yml @@ -0,0 +1,18 @@ +name: Build for PyPI +on: + release: + types: [published] + branches: + - dev_bjorn +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.16 + with: + pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} + repository_name: "testpypi" + repository_url: "https://test.pypi.org/legacy/" + plugins: "poetry-dynamic-versioning[plugin]"