Skip to content

Commit 28cb703

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

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.github/workflows/default.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,6 @@ 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: dist
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: dist
55-
path: dist
5639
- name: Publish to PyPI
5740
uses: pypa/gh-action-pypi-publish@v1.5.0
5841
with:

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
4141
- name: Publish to PyPI
4242
uses: pypa/gh-action-pypi-publish@v1.5.0
43+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
4344
with:
4445
user: __token__
4546
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)