diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 066b664c..59512497 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -28,12 +28,6 @@ jobs: - name: install run: pip install -U build - - name: check version - id: check-tag - uses: samuelcolvin/check-python-version@v4.1 - with: - version_file_path: pragma-sdk/pragma_sdk/__init__.py - - name: build run: python -m build @@ -42,3 +36,4 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ password: ${{ secrets.PYPI_API_TOKEN }} + skip-existing: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 257e8eed..9fa73c1b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -24,7 +24,3 @@ jobs: build_containers: name: Build Docker Image uses: ./.github/workflows/docker-test.yml - - test_pypi_publish: - name: Upload package to Test PyPI - uses: ./.github/workflows/test-publish.yml diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml deleted file mode 100644 index 49579d7c..00000000 --- a/.github/workflows/test-publish.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Task - Publish Package to Test PyPi - -on: - workflow_dispatch: - workflow_call: - - -env: - PYTHON_VERSION: 3.12.4 - -defaults: - run: - working-directory: pragma-sdk - -jobs: - test_pypi_publish: - name: Upload package to Test PyPI - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: set up python - uses: actions/setup-python@v5 - with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: install - run: pip install -U build - - - name: check version - id: check-tag - uses: samuelcolvin/check-python-version@v4.1 - with: - version_file_path: pragma-sdk/pragma_sdk/__init__.py - - - name: build - run: python -m build