diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 59512497..80980b58 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -6,9 +6,6 @@ on: branches: - master -env: - PYTHON_VERSION: 3.12.4 - defaults: run: working-directory: pragma-sdk @@ -20,20 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: set up python - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v4 with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: install - run: pip install -U build + enable-cache: true - - name: build - run: python -m build + - run: uv build - name: Upload package to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.2 + uses: pypa/gh-action-pypi-publish@release/v1 with: + packages-dir: pragma-sdk/dist + attestations: false 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 c89d0901..1dfdb552 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,5 +29,7 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: + packages-dir: pragma-sdk/dist + attestations: false password: ${{ secrets.PYPI_API_KEY }} skip-existing: true