Skip to content

Commit 05cb261

Browse files
committed
🔧 Update CI
- update upload/download workflow actions - use OIDC credentials to release to PyPI
1 parent 4a41409 commit 05cb261

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
- name: Run doctest
148148
run: |
149149
python -m sphinx -b doctest -W --keep-going doc build
150-
- uses: actions/upload-artifact@v3
150+
- uses: actions/upload-artifact@v4
151151
with:
152152
name: sphinx-out
153153
path: ./build/
@@ -166,9 +166,9 @@ jobs:
166166
- name: Check build artifacts
167167
run: pipx run twine check --strict dist/*
168168
- name: Save artifacts
169-
uses: actions/upload-artifact@v3
169+
uses: actions/upload-artifact@v4
170170
with:
171-
name: python-can-dist
171+
name: "${{ matrix.os }}-${{ matrix.python-version }}"
172172
path: ./dist
173173

174174
upload_pypi:
@@ -178,12 +178,9 @@ jobs:
178178
# upload to PyPI only on release
179179
if: github.event.release && github.event.action == 'published'
180180
steps:
181-
- uses: actions/download-artifact@v3
181+
- uses: actions/download-artifact@v4
182182
with:
183-
name: python-can-dist
184183
path: dist
184+
merge-multiple: true
185185

186-
- uses: pypa/gh-action-pypi-publish@v1.4.2
187-
with:
188-
user: __token__
189-
password: ${{ secrets.PYPI_API_TOKEN }}
186+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)