Skip to content

Commit

Permalink
[#40] Ci: implement uv build and uv publish
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanofusai committed Dec 6, 2024
1 parent fd28ca0 commit 7a4ea41
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
python-version:
- 3.12
- 3.13
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,22 +42,19 @@ jobs:
environment: release
permissions:
id-token: write
strategy:
matrix:
python-version:
- 3.12
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python-version-file: pyproject.toml
- name: Set up uv
uses: astral-sh/setup-uv@v4
with:
version: 0.5.6
enable-cache: true
- name: Build package
run: python -m build
run: uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.8
run: uv publish

0 comments on commit 7a4ea41

Please sign in to comment.