Skip to content

Commit 3742325

Browse files
committed
Refactor handling of artifacts in new workflow
1 parent 18fe4c4 commit 3742325

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,27 +109,39 @@ jobs:
109109
path: |
110110
./wheelhouse/*.whl
111111
./wheelhouse/*.tar.gz
112-
name: wheels-basemap-${{ matrix.os }}
112+
name: dist-basemap-${{ matrix.os }}
113113

114-
upload_pypi:
114+
check:
115+
name: Check basemap packages
115116
needs: [build_data, build_basemap]
116117
runs-on: ubuntu-latest
118+
steps:
119+
- uses: actions/download-artifact@v4
120+
with:
121+
path: dist
122+
pattern: "dist-*"
123+
merge-multiple: true
124+
125+
- name: Set up Python
126+
uses: actions/setup-python@v4
127+
with:
128+
python-version: "3.9"
129+
130+
- name: Check packages with twine
131+
run: |
132+
python -m pip install twine
133+
python -m twine check dist/*
134+
135+
upload:
136+
name: Upload basemap packages
137+
needs: [build_data, build_basemap, check]
138+
runs-on: ubuntu-latest
117139
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
118-
strategy:
119-
matrix:
120-
package: [basemap, basemap_data, basemap_data_hires]
121-
include:
122-
- package: basemap
123-
artifact_pattern: "wheels-basemap-*"
124-
- package: basemap_data
125-
artifact_pattern: "dist-basemap_data"
126-
- package: basemap_data_hires
127-
artifact_pattern: "dist-basemap_data_hires"
128140
steps:
129141
- uses: actions/download-artifact@v4
130142
with:
131-
pattern: ${{ matrix.artifact_pattern }}
132143
path: dist
144+
pattern: "dist-*"
133145
merge-multiple: true
134146

135147
- name: Publish to PyPI

0 commit comments

Comments
 (0)