From 5b3fbaf2dc3b3daf7f5f2d30ed99685d8982eb52 Mon Sep 17 00:00:00 2001 From: Yasser Tahiri Date: Thu, 26 Dec 2024 16:38:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20GitHub=20workflows=20to=20?= =?UTF-8?q?use=20UV=20for=20building=20(#236)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-release.yml | 18 ++++++------------ .github/workflows/publish.yml | 2 ++ 2 files changed, 8 insertions(+), 12 deletions(-) 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