Skip to content

Commit b12b9d1

Browse files
authored
Updated GitHub Actions publish.yml to use uv (#47)
1 parent 0e7dc08 commit b12b9d1

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,24 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
9-
name: Build distribution 📦
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- uses: actions/checkout@v6
14-
- name: Set up Python
15-
uses: actions/setup-python@v6
16-
with:
17-
python-version: "3.x"
18-
- name: Install pypa/build
19-
run: >-
20-
python3 -m
21-
pip install
22-
build
23-
--user
24-
- name: Build a binary wheel and a source tarball
25-
run: python3 -m build
26-
- name: Store the distribution packages
27-
uses: actions/upload-artifact@v5
28-
with:
29-
name: python-package-distributions
30-
path: dist/
31-
pypi-publish:
32-
name: Upload release to PyPI
8+
run:
9+
name: Publish package
3310
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
34-
needs:
35-
- build
3611
runs-on: ubuntu-latest
3712
environment:
3813
name: pypi
39-
url: https://pypi.org/p/markusapi
4014
permissions:
4115
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
16+
contents: read
4217
steps:
43-
- name: Download all the dists
44-
uses: actions/download-artifact@v6
18+
- uses: actions/checkout@v6
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v7
4521
with:
46-
name: python-package-distributions
47-
path: dist/
48-
- name: Publish distribution 📦 to PyPI
49-
uses: pypa/gh-action-pypi-publish@release/v1
22+
enable-cache: true
23+
- name: Install Python
24+
run: uv python install
25+
- name: Build the package
26+
run: uv build
27+
- name: Publish
28+
run: uv publish

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [unreleased]
44

5+
- Adopt `uv` package manager and GitHub Actions for test and publish (#46, #47)
6+
57
## [0.4.0]
68
- Fixed bug preventing creating/updating marks spreadsheets with nested grade items (#40)
79
- Upgrade requests package (#43)

0 commit comments

Comments
 (0)