Skip to content

Commit 7203b65

Browse files
committed
🔧 Update CI
- update upload/download workflow actions - use OIDC credentials to release to PyPI
1 parent 32c7640 commit 7203b65

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
- name: Run doctest
156156
run: |
157157
python -m sphinx -b doctest -W --keep-going doc build
158-
- uses: actions/upload-artifact@v3
158+
- uses: actions/upload-artifact@v4
159159
with:
160160
name: sphinx-out
161161
path: ./build/
@@ -174,9 +174,9 @@ jobs:
174174
- name: Check build artifacts
175175
run: pipx run twine check --strict dist/*
176176
- name: Save artifacts
177-
uses: actions/upload-artifact@v3
177+
uses: actions/upload-artifact@v4
178178
with:
179-
name: python-can-dist
179+
name: "${{ matrix.os }}-${{ matrix.python-version }}"
180180
path: ./dist
181181

182182
upload_pypi:
@@ -186,12 +186,9 @@ jobs:
186186
# upload to PyPI only on release
187187
if: github.event.release && github.event.action == 'published'
188188
steps:
189-
- uses: actions/download-artifact@v3
189+
- uses: actions/download-artifact@v4
190190
with:
191-
name: python-can-dist
192191
path: dist
192+
merge-multiple: true
193193

194-
- uses: pypa/[email protected]
195-
with:
196-
user: __token__
197-
password: ${{ secrets.PYPI_API_TOKEN }}
194+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)