Skip to content

Commit 1ba7aa9

Browse files
authored
Update deploy.yml
1 parent 73a65ad commit 1ba7aa9

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66
branches:
77
- master
88
tags:
9-
- '*'
9+
- 'v*.*.*' # Trigger on version tags like v1.0.0
1010

1111
jobs:
1212
build-and-publish:
1313
name: Build and publish readit distributions to PyPI
1414
runs-on: ubuntu-latest
15+
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v4
@@ -22,15 +23,18 @@ jobs:
2223
python-version: '3.8'
2324
architecture: 'x64'
2425

25-
- name: Build Package
26+
- name: Install Dependencies
2627
run: |
27-
python -m pip install --upgrade setuptools wheel twine
28-
python setup.py sdist bdist_wheel
28+
python -m pip install --upgrade pip
29+
pip install build twine
2930
30-
- name: Package check
31+
- name: Build Package with pypa/build
32+
run: python -m build
33+
34+
- name: Check Package
3135
run: twine check dist/*
3236

33-
- name: Deploy to PyPi readit
37+
- name: Deploy to PyPI
3438
if: startsWith(github.event.ref, 'refs/tags')
3539
uses: pypa/gh-action-pypi-publish@release/v1
3640
with:

0 commit comments

Comments
 (0)