Skip to content

Commit c91f274

Browse files
committed
ci: update deploy script
1 parent c51118b commit c91f274

File tree

2 files changed

+38
-26
lines changed

2 files changed

+38
-26
lines changed

.github/workflows/deploy_pypi.yml

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,40 @@ on:
66
- '*'
77

88
jobs:
9-
deploy:
10-
name: Create Release
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
python-version: ['3.11']
15-
os: [macos-latest, windows-latest]
9+
build_sdist:
10+
name: Build source distribution
11+
runs-on: ubuntu-latest
1612
steps:
17-
- uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
20-
- name: Set up Python
21-
uses: actions/setup-python@v3
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install setuptools wheel twine
28-
pip install -e .
29-
- name: Build and publish
30-
env:
31-
TWINE_USERNAME: ci_fcs
32-
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
33-
run: |
34-
python setup.py sdist bdist_wheel
35-
twine upload --skip-existing dist/*
13+
- uses: actions/checkout@main
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Build sdist
18+
run: pipx run build --sdist
19+
20+
- name: publish
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
24+
run: |
25+
pipx install twine
26+
twine upload --skip-existing dist/*
27+
28+
build_wheels:
29+
name: Build wheel
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@main
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Build sdist
37+
run: pipx run build --wheel
38+
39+
- name: publish
40+
env:
41+
TWINE_USERNAME: __token__
42+
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
43+
run: |
44+
pipx install twine
45+
twine upload --skip-existing dist/*

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.3.1
2+
- maintenance release
13
1.3.0
24
- fix: import error (#208)
35
- enh: add support for PicoQuant ptu file format (#84)

0 commit comments

Comments
 (0)