Skip to content

Commit acfa693

Browse files
committed
Adapt building process.
1 parent 7a2bbd6 commit acfa693

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/build_and_publish.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ ubuntu-20.04, windows-2019, macos-11 ]
15+
# macos-13 is pre-ARM
16+
os: [ ubuntu-24.04, windows-2019, macos-13, macos-latest ]
1617

1718
steps:
1819
- uses: actions/checkout@v4
@@ -22,9 +23,11 @@ jobs:
2223
- name: Build wheels
2324
uses: pypa/cibuildwheel@v2.21.1
2425

25-
- uses: actions/upload-artifact@v3
26+
- uses: actions/upload-artifact@v4
2627
with:
28+
name: pytsql-wheel-${{ matrix.os }}
2729
path: ./wheelhouse/*.whl
30+
if-no-files-found: error
2831

2932
build_sdist:
3033
name: Build source distribution
@@ -37,22 +40,23 @@ jobs:
3740
- name: Build sdist
3841
run: pipx run build --sdist
3942

40-
- uses: actions/upload-artifact@v3
43+
- uses: actions/upload-artifact@v4
4144
with:
45+
name: pytsql-sdist
4246
path: dist/*.tar.gz
47+
if-no-files-found: error
4348

4449
upload_pypi:
4550
name: Upload to PyPI
4651
needs: [build_wheels, build_sdist]
52+
environment: pypi
4753
runs-on: ubuntu-latest
4854
if: github.event_name == 'release' && github.event.action == 'published'
4955
steps:
50-
- uses: actions/download-artifact@v3
56+
- uses: actions/download-artifact@v4
5157
with:
52-
name: artifact
58+
pattern: pytsql-*
59+
merge-multiple: true
5360
path: dist
5461

5562
- uses: pypa/gh-action-pypi-publish@v1.10.2
56-
with:
57-
user: __token__
58-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)