From e4dcf5f17421c56924032395758a5f41c7b902c5 Mon Sep 17 00:00:00 2001 From: Yasser Tahiri Date: Thu, 26 Dec 2024 16:24:09 +0100 Subject: [PATCH] :bug: update version file path in workflows (#235) * :bug: update version file path in workflows * feat: add Test PyPI upload workflow * :recycle: simplify pre-release workflow and remove Test PyPI upload step --- .github/workflows/pre-release.yml | 7 +------ .github/workflows/publish.yml | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 2c9a7e3f..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/__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/publish.yml b/.github/workflows/publish.yml index 6230be65..c89d0901 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: - name: check GITHUB_REF matches package version uses: samuelcolvin/check-python-version@v4.1 with: - version_file_path: pragma_sdk/__init__.py + version_file_path: pragma-sdk/pragma_sdk/__init__.py - run: uv build