Skip to content

Commit

Permalink
✨ Update GitHub workflows to use UV for building (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 authored Dec 26, 2024
1 parent e4dcf5f commit 5b3fbaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
branches:
- master

env:
PYTHON_VERSION: 3.12.4

defaults:
run:
working-directory: pragma-sdk
Expand All @@ -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
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5b3fbaf

Please sign in to comment.