From 8b15d8d737d7f4df8ad7081a48a6b8735b152759 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Tahavori <50955527+mohammadamint@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:29:32 +0100 Subject: [PATCH 1/2] solving the test.pypi release issue #96 updating the secrets for API Token for the automatic test release of software after Pushes and PRs to developemnt and main --- .github/workflows/python-pypi-test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-pypi-test.yml b/.github/workflows/python-pypi-test.yml index f1c26d79..8533ed08 100644 --- a/.github/workflows/python-pypi-test.yml +++ b/.github/workflows/python-pypi-test.yml @@ -1,10 +1,15 @@ -ame: Deploy to Test PyPi +name: Deploy to Test PyPi -on: +on: push: branches: - development - main + + pull_request: + branches: + - development + - main jobs: build_and_deploy: name: Build the release and deploy to test pypi @@ -12,7 +17,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@master - + - name: Set up Python 3.10 uses: actions/setup-python@v3 with: @@ -33,5 +38,5 @@ jobs: with: skip_existing: true verbose: true - password: ${{ secrets.SHAFT_PYPI_TEST }} + password: ${{ secrets.RAMP_TEST }} repository_url: https://test.pypi.org/legacy/ \ No newline at end of file From cda75e3b683766502fcee0fd196eb8fa0f316ef6 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Tahavori <50955527+mohammadamint@users.noreply.github.com> Date: Tue, 7 Nov 2023 18:47:49 +0100 Subject: [PATCH 2/2] Update python-pypi-test.yml using kebab-case for skip-exisiting and repository-url --- .github/workflows/python-pypi-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-pypi-test.yml b/.github/workflows/python-pypi-test.yml index 8533ed08..65df7566 100644 --- a/.github/workflows/python-pypi-test.yml +++ b/.github/workflows/python-pypi-test.yml @@ -32,11 +32,11 @@ jobs: - name: test install package run: | pip install -e . - - name: Publish distribution 📦 to Test PyPI + - name: Publish distribution 📦 to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - skip_existing: true + skip-existing: true verbose: true - password: ${{ secrets.RAMP_TEST }} - repository_url: https://test.pypi.org/legacy/ \ No newline at end of file + password: ${{ secrets.RAMP_TEST}} + repository-url: https://test.pypi.org/legacy/ \ No newline at end of file