Skip to content

Commit cb3884e

Browse files
committed
CI: Use Hatch GHA install action
1 parent 8200dfe commit cb3884e

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,26 @@ jobs:
1313
name: 'Build & publish package to PyPI'
1414
runs-on: 'ubuntu-latest'
1515
steps:
16-
- uses: actions/checkout@v6
16+
17+
- name: Acquire source code
18+
uses: actions/checkout@v6
1719
with:
1820
fetch-depth: 0
1921
fetch-tags: true
2022
persist-credentials: false
2123

22-
- name: Set up uv
24+
- name: Install uv
2325
uses: astral-sh/setup-uv@v7
2426
with:
2527
activate-environment: true
2628
enable-cache: true
2729
python-version: "3.14"
2830

29-
- name: Set up Hatch and Twine
30-
run: uv pip install hatch twine
31+
- name: Install Hatch
32+
uses: pypa/hatch@install
33+
34+
- name: Install Twine
35+
run: uv pip install twine
3136

3237
- name: Build package
3338
run: hatch build

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["hatch", "versioningit"]
2+
requires = ["hatchling", "versioningit"]
33
build-backend = "hatchling.build"
44

55
[tool.hatch.build.targets.sdist]

0 commit comments

Comments
 (0)