Skip to content

Commit 76ba1fc

Browse files
committed
Give explicit names to uploaded artifacts.
1 parent a2587aa commit 76ba1fc

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/build_and_publish.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Build wheels
23-
uses: pypa/cibuildwheel@v2.21.1
22+
#- name: Build wheels
23+
# uses: pypa/cibuildwheel@v2.21.1
24+
25+
- run:
26+
echo "hello" > dist/pytsql-wheel-${{ matrix.os }}.whl
2427

2528
- uses: actions/upload-artifact@v4
2629
with:
30+
name: pytsql-wheel-${{ matrix.os }}
2731
path: ./wheelhouse/*.whl
32+
if-no-files-found: error
2833

2934
build_sdist:
3035
name: Build source distribution
@@ -39,20 +44,23 @@ jobs:
3944

4045
- uses: actions/upload-artifact@v4
4146
with:
47+
name: pytsql-sdist-${{ matrix.os }}
4248
path: dist/*.tar.gz
49+
if-no-files-found: error
4350

4451
upload_pypi:
4552
name: Upload to PyPI
4653
needs: [build_wheels, build_sdist]
4754
runs-on: ubuntu-latest
48-
if: github.event_name == 'release' && github.event.action == 'published'
55+
# if: github.event_name == 'release' && github.event.action == 'published'
4956
steps:
5057
- uses: actions/download-artifact@v4
5158
with:
52-
name: artifact
59+
pattern: pytsql-*
60+
merge-multiple: true
5361
path: dist
5462

55-
- uses: pypa/gh-action-pypi-publish@v1.10.2
56-
with:
57-
user: __token__
58-
password: ${{ secrets.PYPI_TOKEN }}
63+
#- uses: pypa/gh-action-pypi-publish@v1.10.2
64+
- run:
65+
ls dist
66+

0 commit comments

Comments
 (0)