Skip to content

Commit 94d35e0

Browse files
kjaymillerbrass75
andauthored
Update .github/workflows/publish.yml
Co-authored-by: Dan Shernicoff <dan@brassnet.biz>
1 parent 69da848 commit 94d35e0

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,15 @@ jobs:
1010
deploy:
1111
needs: [test, lint]
1212
name: Deploy to PyPI
13+
runs-on: ubuntu-latest
1314
permissions:
1415
id-token: write
15-
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout source
18-
uses: actions/checkout@v4
19-
20-
- name: Set up Python 3.11
21-
uses: actions/setup-python@v5
17+
- uses: actions/checkout@v4
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
21+
- run: uv build
22+
- uses: pypa/gh-action-pypi-publish@release/v1
2223
with:
23-
python-version: 3.11
24-
cache: 'pip' # caching pip dependencies
25-
- name: Install build dependencies
26-
run: python -m pip install build twine
27-
28-
- name: Build distributions
29-
run: python -m build
30-
31-
- name: Publish package to PyPI
32-
uses: pypa/gh-action-pypi-publish@release/v1
24+
packages-dir: ./dist

0 commit comments

Comments
 (0)