Skip to content

Commit 8db8d78

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 4478b4d + 55905d2 commit 8db8d78

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/ci_cd.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
cache-dependency-path: pyproject.toml
8181

8282
- name: Verify wheel
83+
if: matrix.python-version == '3.12'
8384
run: |
8485
python -m pip install --upgrade pip build twine
8586
python -m build && python -m twine check dist/*
@@ -115,6 +116,14 @@ jobs:
115116
env:
116117
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
117118

119+
- name: Upload distribution artifacts
120+
if: matrix.python-version == '3.12'
121+
uses: actions/upload-artifact@v4
122+
with:
123+
name: dist-artifacts
124+
path: dist/
125+
retention-days: 7
126+
118127
release:
119128
name: Release
120129
if: |
@@ -126,27 +135,23 @@ jobs:
126135
- downstream
127136
runs-on: ubuntu-24.04
128137
steps:
129-
- name: Checkout repository
130-
uses: actions/checkout@v4
138+
- name: Download distribution artifacts
139+
uses: actions/download-artifact@v4
140+
with:
141+
name: dist-artifacts
142+
path: dist/
131143

132144
- name: Set up Python
133145
uses: actions/setup-python@v5
134146
with:
135-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
136-
137-
- name: Install dependencies
138-
run: |
139-
python -m pip install --upgrade pip build twine
140-
141-
- name: Build artifacts
142-
run: |
143-
python -m build && python -m twine check dist/*
147+
python-version: "3.12"
144148

145149
- name: Publish to PyPI
146150
env:
147151
TWINE_USERNAME: __token__
148152
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
149153
run: |
154+
python -m pip install twine
150155
python -m twine upload --skip-existing ./**/*.whl
151156
python -m twine upload --skip-existing ./**/*.tar.gz
152157

0 commit comments

Comments
 (0)