Skip to content

Commit 5b65e11

Browse files
committed
ci: upload fix
1 parent 28cb703 commit 5b65e11

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/default.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,27 @@ jobs:
3636
run: |
3737
pip install --find-links=dist materialyoucolor --no-index
3838
python tests/test_all.py test_image.jpg 1
39+
- name: Upload artifacts
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: "artifact-python${{ matrix.python-version }}-os${{ matrix.os }}.tar.gz"
43+
path: dist
44+
deploy:
45+
name: Publish to PyPI
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v2
51+
- name: Download artifacts
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: "artifact-python${{ matrix.python-version }}-os${{ matrix.os }}.tar.gz"
55+
path: dist
3956
- name: Publish to PyPI
4057
uses: pypa/gh-action-pypi-publish@v1.5.0
4158
with:
4259
user: __token__
4360
password: ${{ secrets.PYPI_TOKEN }}
4461
packages_dir: dist/
62+

0 commit comments

Comments
 (0)