Skip to content

Commit fa9f72e

Browse files
committed
ci: bump download-artifact to v4
1 parent dcc50a9 commit fa9f72e

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/default.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
os: [windows-latest, macos-latest, macos-14]
1313
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1414
dist: [bdist_wheel]
15-
exclude:
16-
- os: macos-14
17-
python-version: '3.9'
1815
steps:
1916
- name: Set up Python ${{ matrix.python-version }}
2017
uses: actions/setup-python@v4
@@ -37,26 +34,31 @@ jobs:
3734
pip install --find-links=dist materialyoucolor --no-index
3835
python tests/test_all.py test_image.jpg 1
3936
- name: Upload artifacts
40-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
4138
with:
42-
name: dist
39+
name: "artifact-cp${{ matrix.python-version }}-${{ matrix.os }}.tar.gz"
4340
path: dist
4441
deploy:
4542
name: Publish to PyPI
4643
runs-on: ubuntu-latest
4744
needs: build
48-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
45+
strategy:
46+
matrix:
47+
os: [windows-latest, macos-latest, macos-14]
48+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
4949
steps:
5050
- name: Checkout
5151
uses: actions/checkout@v2
5252
- name: Download artifacts
53-
uses: actions/download-artifact@v2
53+
uses: actions/download-artifact@v4
5454
with:
55-
name: dist
55+
name: "artifact-cp${{ matrix.python-version }}-${{ matrix.os }}.tar.gz"
5656
path: dist
5757
- name: Publish to PyPI
58-
uses: pypa/gh-action-pypi-publish@v1.5.0
58+
uses: pypa/gh-action-pypi-publish@v1.12.3
5959
with:
6060
user: __token__
6161
password: ${{ secrets.PYPI_TOKEN }}
62+
skip-existing: true
6263
packages_dir: dist/
64+

.github/workflows/linux.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
curl -L -o test_image.jpg "https://unsplash.com/photos/zQLd8RXbenw/download?ixid=M3wxMjA3fDB8MXx0b3BpY3x8NnNNVmpUTFNrZVF8fHx8fDJ8fDE3MzY0MDA3NTd8&force=true&w=2400"
1919
- name: Setup, Build, Test and Audit
2020
run: |
21-
python_versions=("cp39" "cp310" "cp311" "cp312" "cp313")
21+
python_versions=("cp310" "cp311" "cp312" "cp313" "cp39")
2222
for version in "${python_versions[@]}"; do
2323
2424
/opt/python/$version-$version/bin/pip install --upgrade pip setuptools rich wheel requests pillow
@@ -39,10 +39,9 @@ jobs:
3939
done
4040
4141
- name: Publish to PyPI
42-
uses: pypa/[email protected]
43-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
42+
uses: pypa/[email protected]
4443
with:
4544
user: __token__
4645
password: ${{ secrets.PYPI_TOKEN }}
4746
packages_dir: wheelhouse
48-
47+
skip-existing: true

0 commit comments

Comments
 (0)